Skip to content

Commit

Permalink
Fix Tree.ToMap godoc comment (#162)
Browse files Browse the repository at this point in the history
Fixes #160
  • Loading branch information
moorereason authored and pelletier committed May 16, 2017
1 parent 685a1f1 commit 5c26a6f
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions tomltree_write.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,13 +189,15 @@ func (t *Tree) String() string {

// ToMap recursively generates a representation of the tree using Go built-in structures.
// The following types are used:
// * uint64
// * int64
// * bool
// * string
// * time.Time
// * map[string]interface{} (where interface{} is any of this list)
// * []interface{} (where interface{} is any of this list)
//
// * bool
// * float64
// * int64
// * string
// * uint64
// * 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{} {
result := map[string]interface{}{}

Expand Down

0 comments on commit 5c26a6f

Please sign in to comment.