Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/a8m/tree
/ functions
Functions
58 in github.com/a8m/tree
⨍
Functions
58
◇
Types & classes
11
↓ 9 callers
Method
IsDir
()
node_test.go:34
↓ 9 callers
Method
Visit
Visit all files under the given node.
node.go:96
↓ 8 callers
Method
Name
()
node_test.go:21
↓ 8 callers
Function
New
New get path and create new node(root).
node.go:91
↓ 8 callers
Method
Print
Print nodes based on the given configuration.
node.go:227
↓ 6 callers
Method
addFile
(path string, file *file)
node_test.go:56
↓ 6 callers
Method
clean
()
node_test.go:51
↓ 6 callers
Method
clear
()
node_test.go:94
↓ 5 callers
Method
Size
()
node_test.go:22
↓ 5 callers
Method
Sys
()
node_test.go:35
↓ 5 callers
Method
equal
(s string)
node_test.go:85
↓ 5 callers
Method
match
(pattern string, opt *Options)
node.go:181
↓ 4 callers
Method
ModTime
()
node_test.go:33
↓ 4 callers
Function
isdigit
(b byte)
sort.go:55
↓ 3 callers
Method
Mode
()
node_test.go:23
↓ 3 callers
Function
contains
case-insensitive contains helper
color.go:70
↓ 2 callers
Function
ANSIColor
ANSIColor
color.go:31
↓ 2 callers
Function
ModSort
(f1, f2 os.FileInfo)
sort.go:19
↓ 2 callers
Method
Stat
(path string)
node.go:35
↓ 2 callers
Method
color
(node *Node, s string)
node.go:82
↓ 2 callers
Function
errAndExit
(err error)
cmd/tree/tree.go:177
↓ 2 callers
Function
formatBytes
Convert bytes to human readable string. Like a 2 MB, 64.2 KB, 52 B
node.go:423
↓ 1 callers
Function
ANSIColorFormat
ANSIColorFormat
color.go:26
↓ 1 callers
Function
NaturalLess
NaturalLess compares two strings using natural ordering. This means that e.g. "abc2" < "abc12". Non-digit sequences and numbers are compared separate
sort.go:67
↓ 1 callers
Function
NewFs
()
node_test.go:47
↓ 1 callers
Function
Print
Print a tree of the directory
ostree/ostree.go:33
↓ 1 callers
Method
ReadDir
(path string)
node.go:36
↓ 1 callers
Function
dirRecursiveSize
(opts *Options, node *Node)
node.go:229
↓ 1 callers
Function
getStat
(fi os.FileInfo)
stat_unix.go:10
↓ 1 callers
Method
print
(indent string, opts *Options)
node.go:253
↓ 1 callers
Method
sort
(opts *Options)
node.go:194
Function
CTimeSort
(f1, f2 os.FileInfo)
csort_unix.go:11
Function
CTimeSort
(f1, f2 os.FileInfo)
csort_bsd.go:10
Function
DirSort
(f1, f2 os.FileInfo)
sort.go:27
Method
Len
()
sort.go:5
Method
Less
(i, j int)
sort.go:13
Function
NameSort
(f1, f2 os.FileInfo)
sort.go:41
Method
Path
Path returns the Node's absolute path
node.go:222
Method
ReadDir
(path string)
node_test.go:72
Method
ReadDir
ReadDir reads a directory
ostree/ostree.go:19
Function
SizeSort
(f1, f2 os.FileInfo)
sort.go:34
Method
Stat
(path string)
node_test.go:66
Method
Stat
Stat a path
ostree/ostree.go:14
Method
Swap
(i, j int)
sort.go:6
Function
TestCount
(t *testing.T)
node_test.go:451
Function
TestError
(t *testing.T)
node_test.go:626
Function
TestExtension
(t *testing.T)
color_test.go:18
Function
TestFileMode
(t *testing.T)
color_test.go:45
Function
TestGraphics
(t *testing.T)
node_test.go:397
Function
TestSimple
(t *testing.T)
node_test.go:244
Function
TestSort
(t *testing.T)
node_test.go:334
Function
TestSymlink
(t *testing.T)
node_test.go:432
Function
TestTree
(t *testing.T)
ostree/ostree_test.go:7
Function
VerSort
(f1, f2 os.FileInfo)
sort.go:48
Method
Write
(p []byte)
node_test.go:89
Function
getStat
(fi os.FileInfo)
stat_unsupported.go:7
Function
main
()
cmd/tree/tree.go:85
Function
usageAndExit
(msg string)
cmd/tree/tree.go:167