Documentation
¶
Overview ¶
Package fs provides a utility responsible for generating a string representation of the directory tree. It ignores common patterns such as .git, .DS_Store, node_modules, and .idea.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDirectoryTree ¶
func GetDirectoryTree(root string, opts TreeOptions) (string, error)
GetDirectoryTree returns a string representation of the directory tree
Types ¶
type TreeOptions ¶
type TreeOptions struct {
IgnorePatterns []string
}
TreeOptions configures the directory tree generation
Click to show internal directories.
Click to hide internal directories.