mirror of
https://github.com/chenasraf/treelike.git
synced 2026-05-17 17:48:01 +00:00
19 lines
252 B
Go
19 lines
252 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
)
|
|
|
|
func main() {
|
|
opts := getOpts()
|
|
|
|
input, err, code := parseRawInput(opts)
|
|
if err != nil {
|
|
fmt.Println(err)
|
|
os.Exit(code)
|
|
}
|
|
node := parseInput(input.String(), opts)
|
|
fmt.Println(describeTree(node, opts))
|
|
}
|