Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SpecialCase func(path string) bool
SpecialCase is a function you can pass to NewTree in order to override the behavior when marshalling a node.
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node struct { FullPath string `json:"full_path"` Info os.FileInfo `json:"-"` Children []*Node `json:"-"` Parent *Node `json:"-"` }
Node represents a leaf in the filetree
func (Node) MarshalYAML ¶
MarshalYAML serializes the tree into YAML
Click to show internal directories.
Click to hide internal directories.