Documentation
¶
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
}
Tree is a filesystem tree generator that walks a directory structure and can output it in multiple formats: string tree, JSON, and Markdown.
func NewTree ¶
NewTree constructs a new Tree given a filesystem interface and root path. You can optionally pass directory/file names to exclude from traversal.
func (*Tree) MakeTree ¶
MakeTree initiates the tree construction by walking through the filesystem starting from the root path.
func (*Tree) ToMarkdown ¶
ToMarkdown returns the directory structure in a Markdown list format.
Click to show internal directories.
Click to hide internal directories.