Documentation ¶ Index ¶ func BuildNodeTree(n *Node, prefix string, isLast bool, curr *Node) string func ListFilesRel(baseDir string) ([]string, error) type Node func CreateTree() (*Node, error) func FlattenVisibleTree(root *Node) []*Node Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func BuildNodeTree ¶ func BuildNodeTree(n *Node, prefix string, isLast bool, curr *Node) string func ListFilesRel ¶ func ListFilesRel(baseDir string) ([]string, error) Types ¶ type Node ¶ type Node struct { Name string Depth int Parent *Node Children []*Node IsDirectory bool IsExpanded bool } func CreateTree ¶ func CreateTree() (*Node, error) func FlattenVisibleTree ¶ func FlattenVisibleTree(root *Node) []*Node Source Files ¶ View all Source files fileTree.goflatten.gotreeStructs.go Click to show internal directories. Click to hide internal directories.