Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/codechenx/FastTableViewer
/ functions
Functions
230 in github.com/codechenx/FastTableViewer
⨍
Functions
230
◇
Types & classes
20
↓ 48 callers
Function
createNewBuffer
createNewBuffer initializes and returns a new empty Buffer
buffer.go:91
↓ 35 callers
Method
contAppendSli
contAppendSli appends a row to the buffer strict: if true, enforces consistent column count
buffer.go:121
↓ 24 callers
Function
I2S
I2S covert int to string
utils.go:56
↓ 23 callers
Function
createNewBufferWithData
createNewBufferWithData creates a Buffer from existing data
buffer.go:109
↓ 18 callers
Method
getColType
get ith column data type
buffer.go:472
↓ 16 callers
Function
F2S
F2S covert float64 to bool
utils.go:42
↓ 16 callers
Method
filterByColumn
filterByColumn filters rows based on column value using the provided options. It returns a new buffer containing the filtered rows.
buffer.go:795
↓ 16 callers
Method
finish
()
io.go:78
↓ 15 callers
Function
drawBuffer
add buffer data to buffer table with optimized wrapped column lookup
ui.go:42
↓ 12 callers
Function
performSearch
performSearch searches for a query string in the buffer and stores results Supports both plain text and regex search modes with parallel column scanni
utils.go:287
↓ 11 callers
Function
loadFileToBuffer
load file content to buffer (synchronous version for small files or when preferred)
io.go:324
↓ 11 callers
Method
sepDetect
Fast separator detection algorithm with improved heuristics Key improvements: 1. Priority-based candidate selection 2. Early exit for common separator
sepDector.go:18
↓ 10 callers
Function
fatalError
print fatal error and force quite app
utils.go:15
↓ 9 callers
Function
formatBytes
formatBytes formats bytes into human-readable format
buffer.go:213
↓ 9 callers
Method
setMemoryLimit
setMemoryLimit sets the maximum memory limit in bytes (0 = no limit)
buffer.go:183
↓ 9 callers
Function
skipLine
check a line whether should bu skip, according to prefix
io.go:732
↓ 9 callers
Method
summary
(a []string)
stats.go:46
↓ 9 callers
Function
type2name
get column data type name. s: string, n: number, d: date
init.go:14
↓ 8 callers
Function
addDRToBuffer
add displayable(according to user's input argument) RowArray(covert line to array) To Buffer
io.go:889
↓ 8 callers
Method
increment
(bytes int64)
io.go:40
↓ 8 callers
Method
summary
(a []string)
stats.go:183
↓ 7 callers
Method
detectAllColumnTypes
detectAllColumnTypes automatically detects types for all columns in parallel
buffer.go:673
↓ 7 callers
Method
enableStringInterning
enableStringInterning analyzes columns and enables interning for low-cardinality string columns This can save 30-70% memory for datasets with repeated
buffer.go:694
↓ 6 callers
Method
getMemoryUsage
getMemoryUsage returns current estimated memory usage
buffer.go:169
↓ 6 callers
Method
setColType
set ith column data type
buffer.go:467
↓ 6 callers
Method
sortByNum
sortByNum sorts column by number format with optimized numeric conversion
buffer.go:300
↓ 6 callers
Method
sortByStr
sortByStr sorts the buffer by column in string mode colIndex: column to sort by rev: true for descending, false for ascending
buffer.go:271
↓ 5 callers
Function
countRuneFast
Optimized rune counter - much faster than strings.Count for single runes
sepDector.go:58
↓ 5 callers
Function
getColumnMaxWidth
getColumnMaxWidth determines the maximum width for a column
utils.go:229
↓ 5 callers
Method
getSummaryData
()
stats.go:120
↓ 5 callers
Method
getSummaryData
()
stats.go:250
↓ 5 callers
Method
intern
intern returns a canonical version of the string, reducing memory usage
buffer.go:24
↓ 5 callers
Function
parseNumericValueFast
parseNumericValueFast quickly parses a string to float64 Handles commas, underscores, and returns 0 for invalid values
buffer.go:379
↓ 5 callers
Function
truncateText
truncateText truncates text to maxWidth and adds ellipsis if needed
utils.go:210
↓ 5 callers
Function
wrapText
wrapText wraps text to fit within maxWidth characters Returns the wrapped text with newlines
utils.go:161
↓ 4 callers
Function
I2B
I2B covert int to bool, if i >0:true, else false
utils.go:37
↓ 4 callers
Method
getCol
getCol returns the ith column data as a string slice Uses pointer receiver to avoid copying mutex
buffer.go:455
↓ 4 callers
Function
getVisCol
check columns that should be displayed
io.go:780
↓ 4 callers
Function
newProgressTracker
(total int64, showProgress bool)
io.go:28
↓ 4 callers
Function
parseDateValueFast
parseDateValueFast quickly parses a date string to unix timestamp Returns 0 for invalid dates with fast pre-checks
buffer.go:398
↓ 4 callers
Method
scoreSeparator
Score separator quality (higher is better)
sepDector.go:171
↓ 4 callers
Function
stopView
stop UI
init.go:95
↓ 3 callers
Function
buildCursorPosStr
buildCursorPosStr builds the cursor position string (without filter info now)
ui.go:14
↓ 3 callers
Function
contains
Helper function
utils_test.go:237
↓ 3 callers
Method
estimateRowSize
estimateRowSize estimates memory usage for a row in bytes
buffer.go:160
↓ 3 callers
Function
getHelpContent
()
utils.go:60
↓ 3 callers
Method
getMemoryLimit
getMemoryLimit returns the configured memory limit
buffer.go:176
↓ 3 callers
Method
getPlot
getPlot generates a histogram visualization for continuous data
stats.go:139
↓ 3 callers
Method
internValue
internValue interns a string value for a specific column if interning is enabled
buffer.go:737
↓ 3 callers
Function
lineCSVParse
use go csv library to parse a string line into csv format Optimized version with reusable reader
io.go:833
↓ 3 callers
Function
lineCSVParseFast
Fast CSV parser for simple cases (no quotes, no escaping) Falls back to standard parser if needed
io.go:851
↓ 3 callers
Function
loadPipeToBuffer
load console pipe content to buffer (synchronous version)
io.go:634
↓ 3 callers
Function
newStringInterner
newStringInterner creates a new string interner
buffer.go:19
↓ 3 callers
Method
resizeCol
resizeCol adjusts the number of columns (thread-safe)
buffer.go:262
↓ 3 callers
Method
sortByDate
sortByDate sorts column by date format with optimized date parsing
buffer.go:339
↓ 3 callers
Function
updateFooterWithStatus
updateFooterWithStatus updates the footer with a status message
init.go:100
↓ 2 callers
Method
autoDetectColumnType
autoDetectColumnType intelligently detects if a column contains numeric, date, or string data Returns colTypeDate for dates, colTypeFloat for numbers,
buffer.go:478
↓ 2 callers
Function
buildFilterInfoStr
buildFilterInfoStr builds the filter information string for the top strip Shows all active filters or current column filter when cursor is on a filter
ui.go:21
↓ 2 callers
Function
checkVisible
check ith column should be displayed or not
io.go:808
↓ 2 callers
Function
drawUI
draw app UI
ui.go:180
↓ 2 callers
Function
generateRepeatedStrings
(count, uniqueCount int)
string_interning_test.go:236
↓ 2 callers
Method
getCandidates
Get candidate separators from first line
sepDector.go:140
↓ 2 callers
Function
getFileScanner
get suitable scanner(compressed or not)
io.go:743
↓ 2 callers
Method
getMemoryStats
getMemoryStats returns memory usage statistics
buffer.go:190
↓ 2 callers
Method
getPlot
getPlot generates a bar chart visualization for discrete data
stats.go:287
↓ 2 callers
Function
isDateValue
isDateValue checks if a string represents a valid date with fast pre-checks
buffer.go:563
↓ 2 callers
Function
isNumericValue
isNumericValue checks if a string represents a valid number Handles: integers, floats, scientific notation, negative numbers
buffer.go:619
↓ 2 callers
Method
isValidSeparator
Fast validation: Check if a separator is valid for all lines
sepDector.go:36
↓ 2 callers
Function
loadAndDisplayAsync
loadAndDisplayAsync handles the complete async loading workflow
ftv.go:120
↓ 2 callers
Function
loadAndDisplaySync
loadAndDisplaySync handles the complete sync loading workflow
ftv.go:140
↓ 2 callers
Function
loadFileToBufferAsync
load file content to buffer (async version with concurrent parsing)
io.go:102
↓ 2 callers
Function
loadPipeToBufferAsync
load console pipe content to buffer (async version for progressive rendering)
io.go:443
↓ 2 callers
Function
makeProgressBar
makeProgressBar creates a visual progress bar percent should be between 0 and 100 width is the number of characters for the bar
utils.go:361
↓ 2 callers
Method
resizeColUnsafe
resizeColUnsafe adjusts the number of columns (must be called with lock held) Fills missing columns with "NaN"
buffer.go:229
↓ 2 callers
Function
runApp
runApp starts the UI application if not in debug mode
ftv.go:110
↓ 2 callers
Function
setupFreezeMode
setupFreezeMode configures row and column freeze settings based on header mode
ftv.go:13
↓ 2 callers
Function
shouldInternColumn
shouldInternColumn determines if a column should use string interning based on its cardinality (ratio of unique values to total values)
buffer.go:42
↓ 2 callers
Function
validateDataNotEmpty
validateDataNotEmpty checks if buffer has data rows and exits if empty
ftv.go:27
↓ 1 callers
Method
GetPercentage
GetPercentage returns the loading percentage (0-100)
init.go:60
↓ 1 callers
Function
S2F
S2F covert string to float64
utils.go:47
↓ 1 callers
Function
allIntItemEqual
check if all item in []int is equal, false for empty array
sepDector.go:216
↓ 1 callers
Function
calculateMode
(data []float64)
stats.go:98
↓ 1 callers
Function
detectAndWrapLongColumns
detectAndWrapLongColumns automatically enables wrapping for columns with long content Analyzes first N rows to detect if columns have text longer than
utils.go:243
↓ 1 callers
Method
detectBestSeparator
Analyze all potential separators when common ones don't work
sepDector.go:69
↓ 1 callers
Method
display
()
io.go:54
↓ 1 callers
Function
drawStats
add stats data to stats table
ui.go:150
↓ 1 callers
Function
evaluateFilter
evaluateFilter checks if a cell value matches the filter query based on the operator.
buffer.go:851
↓ 1 callers
Function
findSubstring
(s, substr string)
utils_test.go:241
↓ 1 callers
Function
generateUniqueStrings
Helper functions
string_interning_test.go:228
↓ 1 callers
Method
getInterningStats
getInterningStats returns statistics about string interning usage
buffer.go:745
↓ 1 callers
Method
getPlot
()
stats.go:14
↓ 1 callers
Method
getSummaryData
()
stats.go:12
↓ 1 callers
Method
getSummaryStr
(a []string)
stats.go:124
↓ 1 callers
Function
initView
initialize tview, buffer
init.go:78
↓ 1 callers
Function
loadDataAsync
loadDataAsync starts async loading and waits for initial data
ftv.go:91
↓ 1 callers
Function
main
()
ftv.go:157
↓ 1 callers
Method
selectBySearch
clear selectedCell of buffer func (b *Buffer) clearSelection() { b.selectedCell = [][]int{} } search string and add result to selectedCell of buffer
buffer.go:776
↓ 1 callers
Method
setDefault
()
args.go:18
↓ 1 callers
Function
showHelpDialog
showHelpDialog displays the help content as a centered modal dialog
ui.go:942
↓ 1 callers
Function
showStatsDialog
showStatsDialog displays column statistics as a centered modal dialog
ui.go:1032
next →
1–100 of 230, ranked by callers