Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dundee/gdu
/ functions
Functions
1,255 in github.com/dundee/gdu
⨍
Functions
1,255
◇
Types & classes
80
↓ 198 callers
Method
GetName
()
pkg/fs/file.go:33
↓ 171 callers
Function
CreateTestDir
CreateTestDir creates test dir structure
internal/testdir/test_dir.go:9
↓ 141 callers
Function
CreateMockedApp
CreateMockedApp returns app with simulation screen for tests
internal/testapp/app.go:36
↓ 140 callers
Function
CreateUI
CreateUI creates the whole UI app
tui/tui.go:115
↓ 130 callers
Function
CreateSimScreen
CreateSimScreen returns tcell.SimulationScreen
internal/testapp/app.go:13
↓ 115 callers
Method
keyPressed
(key *tcell.EventKey)
tui/keys.go:17
↓ 95 callers
Method
GetUpdateDraws
QueueUpdateDraw does nothing
internal/testapp/app.go:95
↓ 83 callers
Method
AnalyzePath
(path string, parentDir gfs.Item)
cmd/gdu/app/app.go:33
↓ 77 callers
Method
IsDir
()
pkg/fs/file.go:35
↓ 74 callers
Method
GetSize
()
pkg/fs/file.go:36
↓ 72 callers
Method
AnalyzeDir
(path string, ignore ShouldDirBeIgnored, fileTypeFilter ShouldFileBeIgnored)
internal/common/analyze.go:26
↓ 68 callers
Method
Wait
Wait blocks until value is 0
pkg/analyze/wait.go:35
↓ 65 callers
Method
Close
()
pkg/analyze/tardir.go:85
↓ 65 callers
Method
GetDone
()
internal/common/analyze.go:32
↓ 55 callers
Method
Add
Add adds file to the list
pkg/analyze/top.go:22
↓ 54 callers
Method
GetFiles
(SortBy, SortOrder)
pkg/fs/file.go:48
↓ 48 callers
Method
GetUsage
()
pkg/fs/file.go:38
↓ 44 callers
Method
InsertItem
InsertItem inserts a file/directory item into the database
pkg/analyze/sqlite.go:253
↓ 44 callers
Function
runApp
nolint: unparam // Why: it's used in linux tests
cmd/gdu/app/app_test.go:678
↓ 43 callers
Function
CreateStdoutUI
CreateStdoutUI creates UI for stdout
stdout/stdout.go:43
↓ 42 callers
Method
formatSize
(size int64)
stdout/stdout.go:539
↓ 40 callers
Method
GetParent
()
pkg/fs/file.go:41
↓ 39 callers
Method
GetPath
()
pkg/fs/file.go:32
↓ 38 callers
Method
UpdateStats
(linkedItems HardLinkedItems)
pkg/fs/file.go:46
↓ 35 callers
Method
Close
Close closes the database connection
pkg/analyze/sqlite.go:98
↓ 34 callers
Function
getAnalyzedPathMockedApp
(t *testing.T, useColors, apparentSize, mockedAnalyzer bool)
tui/tui_test.go:887
↓ 33 callers
Method
GetItemCount
()
pkg/fs/file.go:40
↓ 32 callers
Method
showDir
nolint: funlen // Why: complex function
tui/show.go:54
↓ 31 callers
Method
GetFlag
()
pkg/fs/file.go:34
↓ 29 callers
Method
Size
Length in bytes for regular files; system-dependent for others
pkg/annex/annex.go:63
↓ 29 callers
Method
formatSize
(size int64, reverseColor, transparentBg bool)
tui/format.go:195
↓ 27 callers
Function
NewSqliteStorage
NewSqliteStorage creates a new SQLite storage and initializes the schema
pkg/analyze/sqlite.go:32
↓ 27 callers
Method
SetIgnoreDirPaths
(paths []string)
cmd/gdu/app/app.go:37
↓ 26 callers
Method
QueueUpdateDraw
(f func())
internal/common/app.go:21
↓ 26 callers
Method
showErr
(msg string, err error)
tui/show.go:313
↓ 25 callers
Method
RLock
()
pkg/fs/file.go:52
↓ 24 callers
Function
CreateAnalyzer
CreateAnalyzer returns Analyzer
pkg/analyze/parallel.go:23
↓ 24 callers
Method
GetItemByID
GetItemByID returns an item by its ID
pkg/analyze/sqlite.go:444
↓ 23 callers
Method
GetMtime
()
pkg/fs/file.go:39
↓ 23 callers
Function
getUsageGraph
(part int)
tui/utils.go:34
↓ 22 callers
Function
CreateSqliteAnalyzer
CreateSqliteAnalyzer creates a new SQLite analyzer
pkg/analyze/sqlite.go:843
↓ 21 callers
Function
CreateSeqAnalyzer
CreateSeqAnalyzer returns Analyzer
pkg/analyze/sequential.go:18
↓ 20 callers
Method
Remove
Remove removes File from Files
pkg/fs/file.go:82
↓ 20 callers
Method
SetFocus
(p tview.Primitive)
internal/common/app.go:16
↓ 20 callers
Method
StartUILoop
()
cmd/gdu/app/app.go:48
↓ 18 callers
Method
SetFollowSymlinks
(value bool)
cmd/gdu/app/app.go:42
↓ 18 callers
Function
tableContains
(ui *UI, name string)
tui/filter_test.go:473
↓ 17 callers
Method
CreateIgnoreFunc
CreateIgnoreFunc returns function for detecting if dir should be ignored nolint: gocyclo // Why: This function is a switch statement that is not too c
internal/common/ignore.go:188
↓ 17 callers
Method
Open
Open opens badger DB
pkg/analyze/storage.go:58
↓ 17 callers
Method
formatSize
(size int64)
report/export.go:214
↓ 16 callers
Method
Broadcast
()
internal/common/signal.go:11
↓ 16 callers
Method
GetType
()
pkg/fs/file.go:37
↓ 16 callers
Method
Len
()
pkg/fs/file.go:99
↓ 15 callers
Function
CreateStoredAnalyzer
CreateStoredAnalyzer returns Analyzer
pkg/analyze/stored.go:24
↓ 15 callers
Method
Run
()
internal/common/app.go:12
↓ 14 callers
Method
AddFile
(Item)
pkg/fs/file.go:47
↓ 14 callers
Function
CreateTopDirAnalyzer
CreateTopDirAnalyzer returns Analyzer
pkg/analyze/parallel_top_dir.go:28
↓ 14 callers
Method
Done
Done decrements the value by one, if value is 0, lock is released
pkg/analyze/wait.go:27
↓ 13 callers
Method
ListDevices
(getter device.DevicesInfoGetter)
cmd/gdu/app/app.go:32
↓ 13 callers
Method
SetArchiveBrowsing
(value bool)
cmd/gdu/app/app.go:46
↓ 13 callers
Function
getFlag
(f os.FileInfo)
pkg/analyze/parallel.go:204
↓ 13 callers
Function
isZipFile
isZipFile checks if a file is a zip or jar file
pkg/analyze/zipdir.go:68
↓ 13 callers
Function
processTarFile
processTarFile reads a tar archive and returns a TarDir representing its contents. TarDir.Size is set to the total uncompressed content size; TarDir.U
pkg/analyze/tardir.go:133
↓ 12 callers
Function
CreateTestAppWithSimScreen
CreateTestAppWithSimScreen returns app with simulation screen for tests
internal/testapp/app.go:19
↓ 12 callers
Method
SetParent
(Item)
pkg/fs/file.go:42
↓ 11 callers
Function
ReadAnalysis
ReadAnalysis reads analysis report from JSON file and returns directory item
report/import.go:15
↓ 11 callers
Method
SetDeleteInBackground
SetDeleteInBackground sets the flag to delete files in background
tui/tui.go:371
↓ 11 callers
Method
SetShowAnnexedSize
(value bool)
cmd/gdu/app/app.go:43
↓ 11 callers
Method
Stop
()
internal/common/app.go:13
↓ 11 callers
Method
deleteSelected
(shouldEmpty bool)
tui/actions.go:193
↓ 11 callers
Function
followSymlink
(path string, gitAnnexedSize bool)
pkg/analyze/symlink.go:11
↓ 11 callers
Function
getAnalyzedPathWithSorting
(sortBy string, sortOrder string, apparentSize bool)
tui/sort_test.go:186
↓ 11 callers
Method
matchesTypeFilter
matchesTypeFilter returns true if the file name matches the type filter. Directories always match. Files are matched by extension against the comma-se
tui/filter.go:121
↓ 11 callers
Method
setSorting
(newOrder string)
tui/sort.go:30
↓ 10 callers
Function
CreateExportUI
CreateExportUI creates UI for stdout
report/export.go:33
↓ 10 callers
Method
GetProgress
()
internal/common/analyze.go:33
↓ 10 callers
Method
UpdateProgress
UpdateProgress updates progress
pkg/analyze/analyzer.go:84
↓ 10 callers
Method
fileItemSelected
(row, column int)
tui/tui.go:394
↓ 10 callers
Function
getDirFlag
(err error, items int)
pkg/analyze/parallel.go:193
↓ 10 callers
Function
processZipFile
processZipFile processes a zip file and returns a ZipDir representing its contents
pkg/analyze/zipdir.go:74
↓ 9 callers
Method
EncodeJSON
(writer io.Writer, topLevel bool)
pkg/fs/file.go:44
↓ 9 callers
Method
GetSize
GetSize returns size of the file
pkg/analyze/file.go:55
↓ 9 callers
Method
GetUsage
GetUsage returns usage of the file
pkg/analyze/file.go:60
↓ 9 callers
Method
ReadAnalysis
(input io.Reader)
cmd/gdu/app/app.go:34
↓ 9 callers
Method
formatFileRow
(item fs.Item, maxUsage, maxSize int64, marked, ignored bool)
tui/format.go:20
↓ 9 callers
Function
getZipFileSize
getZipFileSize gets the total uncompressed size of a zip file
pkg/analyze/zipdir.go:180
↓ 9 callers
Method
onMouse
(event *tcell.EventMouse, action tview.MouseAction)
tui/mouse.go:11
↓ 8 callers
Method
AddFile
AddFile add item to files
pkg/analyze/file.go:151
↓ 8 callers
Method
ResetProgress
()
internal/common/analyze.go:34
↓ 8 callers
Method
deleteMarked
(shouldEmpty bool)
tui/marked.go:25
↓ 8 callers
Method
formatCollapsedRow
formatCollapsedRow formats a collapsed directory path for display
tui/format.go:106
↓ 7 callers
Method
CreateFileTypeFilter
CreateFileTypeFilter returns function for detecting if file should be ignored based on type
internal/common/ignore.go:218
↓ 7 callers
Method
Draw
Draw implements tview.Primitive. It draws the border (via Box.Draw) and then fills the inner rect with a segmented progress bar.
tui/progressbar.go:59
↓ 7 callers
Method
GetProgress
GetProgress returns the current progress in the range [0, 100].
tui/progressbar.go:51
↓ 7 callers
Method
Init
Init prepares the WaitGroup for usage, locks
pkg/analyze/wait.go:14
↓ 7 callers
Method
SetProgress
SetProgress sets the current progress in the range [0, 100].
tui/progressbar.go:39
↓ 7 callers
Method
confirmDeletion
(shouldEmpty bool)
tui/tui.go:475
↓ 7 callers
Function
findCollapsiblePath
findCollapsiblePath checks if the given directory item has a single subdirectory chain and returns a CollapsedPath if it can be collapsed
tui/utils.go:88
↓ 7 callers
Function
getDevicesInfoMock
()
tui/tui_test.go:868
↓ 7 callers
Function
processMounts
(mounts Devices, ignoreErrors bool)
pkg/device/dev_linux.go:74
next →
1–100 of 1,255, ranked by callers