TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

6 pointsby russellendicottabout 1 year ago
I&#x27;m always looking for easy ways to visualize data from CLI so I built something I couldn&#x27;t find an existing solution for.<p><pre><code> a := gree.NewNode(&quot;root&quot;) a.NewChild(&quot;child1&quot;) a.NewChild(&quot;child2&quot;).NewChild(&quot;grandchild1&quot;) fmt.Println(a.Draw()) </code></pre> Makes<p><pre><code> root ├── child1 └── child2 └── grandchild1 </code></pre> Curious if others find it useful

no comments

no comments