Documentation ¶
Overview ¶
Command gotree is a reimplmentation of the Unix tree command in Go.
It is not going to be a feature-complete drop-in replacement for the tree command, but rather a showcase of fs/memfs and fs/fsutil packages.
Usage
NAME: gotree - Go implementation of the Unix tree command USAGE: gotree [OPTION]... [DIRECTORY] OPTIONS: -a Lists also hidden files and directories -d List directories only -L level Descend only <level> directories deep -go width Output as Go literal with specified maximum column width
Example
~/src $ gotree -a -L 1 github.com/rjeczalik/tools github.com/rjeczalik/tools/. ├── .git/ ├── .gitignore ├── .travis.yml ├── LICENSE ├── README.md ├── appveyor.yml ├── cmd/ ├── doc.go ├── fs/ ├── netz/ └── rw/ 5 directories, 6 files
Click to show internal directories.
Click to hide internal directories.