Skip to content

Commit

Permalink
docs: godoc
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed May 14, 2024
1 parent 8fc0bc5 commit 8fc562a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tree/tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,13 @@ func (n *Tree) String() string {
// New().Root("foo").Items(New().Root("bar").Item("zaz"), "qux")
//
// The resulting tree would be:
//
// β”œβ”€β”€ foo
// β”œβ”€β”€ bar
// β”‚ └── zaz
// └── qux
//
// You may also change the tree style using Enumerator.
func (n *Tree) Item(item any) *Tree {
switch item := item.(type) {
case *Tree:
Expand Down

0 comments on commit 8fc562a

Please sign in to comment.