dirTree
The utility displays a tree of directories and files.
usage: dirTree [-f]
How it works with directory, where I wrote this project for example
>$ go run main.go
ββββ.git
β ββββhooks
β ββββinfo
β ββββlogs
β β ββββrefs
β β ββββheads
β β ββββremotes
β β ββββorigin
β ββββobjects
β β ββββ11
β β ββββinfo
β β ββββpack
β ββββrefs
β ββββheads
β ββββremotes
β β ββββorigin
β ββββtags
ββββ.idea
-f option adds files and their weight in parentheses to the output
$ go run main.go -f
ββββ.git
β ββββCOMMIT_EDITMSG (56 bytes)
β ββββHEAD (21 bytes)
β ββββconfig (301 bytes)
β ββββdescription (73 bytes)
β ββββhooks
β β ββββapplypatch-msg.sample (478 bytes)
β β ββββupdate.sample (3610 bytes)
β ββββindex (209 bytes)
β ββββinfo
β β ββββexclude (240 bytes)
β ββββlogs
β β ββββHEAD (898 bytes)
β β ββββrefs
β β ββββheads
β β β ββββmain (898 bytes)
β β ββββremotes
β β ββββorigin
β β ββββHEAD (185 bytes)
β β ββββmain (608 bytes)
β ββββobjects
β β ββββ11
β β β ββββ1db3d29b4bbd210a836d300c65fdd6923d2384 (85 bytes)
β β ββββinfo
β β ββββpack
β β ββββpack-f8f5eec2bf7ac1f52ff155f7b21b24aa8cfe1717.idx (1156 bytes)
β β ββββpack-f8f5eec2bf7ac1f52ff155f7b21b24aa8cfe1717.pack (655 bytes)
β ββββpacked-refs (112 bytes)
β ββββrefs
β ββββheads
β β ββββmain (41 bytes)
β ββββremotes
β β ββββorigin
β β ββββHEAD (30 bytes)
β β ββββmain (41 bytes)
β ββββtags
ββββ.idea
β ββββ.gitignore (0 bytes)
β ββββdirTree.iml (322 bytes)
β ββββmodules.xml (266 bytes)
β ββββvcs.xml (180 bytes)
β ββββworkspace.xml (2133 bytes)
ββββREADME.md (64 bytes)
ββββmain.go (2278 bytes)