Versions in this module Expand all Collapse all v1 v1.0.4 Jul 18, 2020 v1.0.3 Jul 18, 2020 Changes in this version + func DirRecursiveSize(node *Node) (size int64, err error) + func FormatSize(opts *Options, size int64) string + func NodeSize(node *Node) int64 v1.0.2 May 14, 2020 Changes in this version type Options + JoinSingle bool v1.0.1 May 13, 2020 v1.0.0 May 13, 2020 Changes in this version + const Black + const Blue + const Bold + const Cyan + const EB + const EiB + const Escape + const GB + const GiB + const Green + const KB + const KiB + const MB + const Magenta + const MiB + const PB + const PiB + const Red + const Reset + const TB + const TiB + const White + const Yellow + var CTimeSort = ModSort — js/wasm, windows/amd64 + func ANSIColor(node *Node, s string) string + func CTimeSort(f1, f2 os.FileInfo) bool — darwin/amd64, linux/amd64 + func DirSort(f1, f2 os.FileInfo) bool + func ModSort(f1, f2 os.FileInfo) bool + func NameSort(f1, f2 os.FileInfo) bool + func NaturalLess(str1, str2 string) bool + func SizeSort(f1, f2 os.FileInfo) bool + func VerSort(f1, f2 os.FileInfo) bool + type ByFunc struct + Fn SortFunc + func (b ByFunc) Less(i, j int) bool + type Fs interface + ReadDir func(path string) ([]string, error) + Stat func(path string) (os.FileInfo, error) + type Node struct + func New(path string) *Node + func (node *Node) Print(opts *Options) + func (node *Node) Visit(opts *Options) (dirs, files int) + type Nodes []*Node + func (n Nodes) Len() int + func (n Nodes) Swap(i, j int) + type Options struct + All bool + ByteSize bool + CTimeSort bool + Colorize bool + DeepLevel int + Device bool + DirSort bool + DirsOnly bool + FileMode bool + FollowLink bool + Fs Fs + FullPath bool + IPattern string + IgnoreCase bool + Inodes bool + LastMod bool + ModSort bool + NameSort bool + NoIndent bool + NoSort bool + OutFile io.Writer + Pattern string + Quotes bool + ReverSort bool + ShowGid bool + ShowUid bool + SizeSort bool + UnitSize bool + VerSort bool + type SortFunc func(f1, f2 os.FileInfo) bool