Documentation ¶ Index ¶ type Node func (n *Node) AddChild(child *Node) *Node func (n *Node) Apply2Child(f func(node *Node)) func (n *Node) Apply2ChildSlice(connectors func(nodes []*Node)) func (n *Node) ApplyThis(p func(node *Node)) type Option func WithCap(cap int) Option type Tree func NewTree(ops ...Option) *Tree Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Node ¶ type Node struct { Parent *Node Child []*Node Connectors []string Level int Meta *item.FileInfo } func (*Node) AddChild ¶ func (n *Node) AddChild(child *Node) *Node func (*Node) Apply2Child ¶ func (n *Node) Apply2Child(f func(node *Node)) func (*Node) Apply2ChildSlice ¶ func (n *Node) Apply2ChildSlice(connectors func(nodes []*Node)) func (*Node) ApplyThis ¶ func (n *Node) ApplyThis(p func(node *Node)) type Option ¶ type Option = func(tree *Tree) func WithCap ¶ func WithCap(cap int) Option type Tree ¶ type Tree struct { Root *Node } func NewTree ¶ func NewTree(ops ...Option) *Tree Source Files ¶ View all Source files tree.go Click to show internal directories. Click to hide internal directories.