thediveo / go-asciitree

Go package for pretty-printing tree-like data structures in ASCII and Unicode.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

asciitree

Go Reference build and test Go Report Card Coverage

asciitree is a Go package for simple pretty-printing of tree-like data structures using pure ASCII "edges" or alternatively Unicode characters for drawing branches and edges.

root1
├── 1
├── 2
│   ├── 2.1
│   └── 2.2
└── 3
    └── 3.1
root2
└── X

Nodes can optionally be sorted by their labels. In addition, nodes may have properties (these are flat, so no properties of properties). These properties can also optionally be sorted.

Copyright and License

asciitree is Copyright 2018‒2023 Harald Albrecht, and licensed under the Apache License, Version 2.0.

About

Go package for pretty-printing tree-like data structures in ASCII and Unicode.

License:Apache License 2.0


Languages

Language:Go 94.0%Language:Shell 4.6%Language:Makefile 1.4%