Documentation ¶
Overview ¶
Package ki creates tree structures from lists of file paths.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tree ¶
type Tree struct {
// contains filtered or unexported fields
}
A Tree is a tree of paths. Each Tree instance is a directory in that path tree.
func Parse ¶
Parse parses a nweline-separated list of slash-separated paths and builds a tree from it.
func (*Tree) Name ¶
Name returns the name of the path element represented by t. If t is the root of a tree as returned by Parse, this will be the empty string.
func (*Tree) NumChildren ¶
NumChildren returns the number of t's child trees.
Click to show internal directories.
Click to hide internal directories.