xmlseq2.go raw

   1  // Copyright 2012-2016, 2019 Charles Banning. All rights reserved.
   2  // Use of this source code is governed by a BSD-style
   3  // license that can be found in the LICENSE file
   4  
   5  package mxj
   6  
   7  // ---------------- expose Map methods to MapSeq type ---------------------------
   8  
   9  // Pretty print a Map.
  10  func (msv MapSeq) StringIndent(offset ...int) string {
  11  	return writeMap(map[string]interface{}(msv), true, true, offset...)
  12  }
  13  
  14  // Pretty print a Map without the value type information - just key:value entries.
  15  func (msv MapSeq) StringIndentNoTypeInfo(offset ...int) string {
  16  	return writeMap(map[string]interface{}(msv), false, true, offset...)
  17  }
  18  
  19