Fix Tree.ToMap godoc comment (#162)

Fixes #160
This commit is contained in:
Cameron Moore
2017-05-16 12:14:30 -05:00
committed by Thomas Pelletier
parent 685a1f1cb7
commit 5c26a6ff6f
+9 -7
View File
@@ -189,13 +189,15 @@ func (t *Tree) String() string {
// ToMap recursively generates a representation of the tree using Go built-in structures. // ToMap recursively generates a representation of the tree using Go built-in structures.
// The following types are used: // The following types are used:
// * uint64 //
// * int64 // * bool
// * bool // * float64
// * string // * int64
// * time.Time // * string
// * map[string]interface{} (where interface{} is any of this list) // * uint64
// * []interface{} (where interface{} is any of this list) // * time.Time
// * map[string]interface{} (where interface{} is any of this list)
// * []interface{} (where interface{} is any of this list)
func (t *Tree) ToMap() map[string]interface{} { func (t *Tree) ToMap() map[string]interface{} {
result := map[string]interface{}{} result := map[string]interface{}{}