Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(options *optionDict) error
func WithBasePath ¶
WithBasePath sets the base path for the filesystem
func WithFileSystem ¶
WithFileSystem sets a custom filesystem to use
type TreeNode ¶
type TreeNode struct {
// the name of the file or directory
Name string
// optional content of the file, ignored if this is a directory
Content string
// if nil, this is a file
// if not nil, this is a directory
// and the children are the files and directories
Children []TreeNode
}
TreeNode represents a file or directory
Click to show internal directories.
Click to hide internal directories.