Skip to content

Commit 78c7d6d

Browse files
committed
Add sample NodeCollection Marshal
1 parent 57cb85c commit 78c7d6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func main() {
4747
}{}
4848

4949
treeNodes := nodes.GenerateTree(child)
50-
b, _ := json.Marshal(treeNodes)
50+
b, _ := treeNodes.Marshal()
5151
fmt.Println(string(b))
5252

5353
err = json.Unmarshal(b, &nodes)

0 commit comments

Comments
 (0)