committed by
Thomas Pelletier
parent
685a1f1cb7
commit
5c26a6ff6f
+9
-7
@@ -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{}{}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user