package
module
Version:
v0.0.0-...-460e69c
Opens a new window with list of versions in this module.
Published: Aug 20, 2021
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
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
LICENSE.md
LICENSES.md
Documentation
¶
func New(separator string) *tree
Source Files
¶
Click to show internal directories.
Click to hide internal directories.