Settings

Theme

Show HN: Gree – go lib for making trees like the 'tree' command

github.com

6 points by russellendicott 2 years ago · 0 comments · 1 min read

Reader

I'm always looking for easy ways to visualize data from CLI so I built something I couldn't find an existing solution for.

    a := gree.NewNode("root")
    a.NewChild("child1") 
    a.NewChild("child2").NewChild("grandchild1")
    fmt.Println(a.Draw())

Makes

    root
    ├── child1
    └── child2
        └── grandchild1
Curious if others find it useful

No comments yet.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection