modulepackage
0.0.0-20210820121428-460e69cb3178
Repository: https://github.com/homburg/go-tree.git
Documentation: pkg.go.dev
# README
Tree
Create an text-based tree (like $ tree
) from any text
using a custom delimiter.
CLI
https://github.com/homburg/tree/
USAGE
package main
import (
"fmt"
"github.com/homburg/tree"
)
func main() {
t := tree.New("-")
t.EatLines([]string{
"root"
"root-first",
"root-first-second.txt",
"third",
})
fmt.Println(t.Format())
// Output:
// root
// └─── first
// └── second.txt
// third.txt
}
LICENSE(S)
MIT 2016 Thomas B Homburg
# Functions
No description provided by the author