MCPcopy Create free account

hub / github.com/olekukonko/tablewriter / functions

Functions889 in github.com/olekukonko/tablewriter

↓ 1 callersMethodformatCellContent
(content string, cellVisualWidth int, padding tw.Padding, align tw.Align)
renderer/ocean.go:389
↓ 1 callersMethodformatSeparator
formatSeparator generates a Markdown separator (e.g., `---`, `:--`, `:-:`) with alignment indicators.
renderer/markdown.go:242
↓ 1 callersFunctiongetCSVReaderFromStringForPartialUpdate
(data string)
tests/csv_test.go:210
↓ 1 callersFunctiongetDiff
A simple diff helper (replace with a proper library if needed)
tests/fn.go:247
↓ 1 callersMethodgetEmptyColumnInfo
getEmptyColumnInfo identifies empty columns in row data. Parameter numOriginalCols specifies the total column count. Returns a boolean slice (true for
zoo.go:1467
↓ 1 callersFunctiongetHTMLStyle
getHTMLStyle remains the same
renderer/fn.go:112
↓ 1 callersFunctiongetHeaderConfig
(alignFlag, wrapFlag string)
cmd/csv2table/csv2table.go:417
↓ 1 callersMethodgetLevel
getLevel maps a position to its rendering level. Parameter position specifies the section (Header, Row, Footer). Returns the corresponding tw.Level (H
tablewriter.go:757
↓ 1 callersFunctiongetRowConfig
(alignFlag, wrapFlag string)
cmd/csv2table/csv2table.go:445
↓ 1 callersMethodgetSVGAnchorFromTW
getSVGAnchorFromTW maps tablewriter alignment to SVG text-anchor. Parameter align is the tablewriter alignment setting. Returns the corresponding SVG
renderer/svg.go:408
↓ 1 callersFunctionhelperProcess
()
pkg/twwidth/width_test.go:15
↓ 1 callersFunctionisBoxDrawingChar
isBoxDrawingChar checks if a rune is within the Unicode Box Drawing range.
pkg/twwidth/width.go:410
↓ 1 callersFunctionisConservativeModernEnvironment
isConservativeModernEnvironment performs strict checks only for known modern terminals.
pkg/twwidth/ea.go:352
↓ 1 callersFunctionisNumericAttribute
Helper functions
tests/svg_test.go:163
↓ 1 callersFunctionmergeLines
mergeLines combines default and override line settings, preserving defaults for unset (zero) overrides.
renderer/fn.go:129
↓ 1 callersFunctionmergeMarkdownConfig
mergeMarkdownConfig combines user-provided config with Markdown defaults, enforcing Markdown-specific settings.
renderer/markdown.go:44
↓ 1 callersFunctionmergeSeparators
mergeSeparators combines default and override separator settings, preserving defaults for unset (zero) overrides.
renderer/fn.go:146
↓ 1 callersFunctionnormalizeHTMLStrict
(s string)
tests/fn.go:204
↓ 1 callersFunctionparseEditorConfig
parseEditorConfig reads tab_width or indent_size from a file.
pkg/twwidth/tab.go:126
↓ 1 callersMethodprepareContexts
prepareContexts initializes rendering and merge contexts. No parameters are required. Returns renderContext, mergeContext, and an error if initializat
tablewriter.go:1100
↓ 1 callersFunctionprocess
(r io.Reader)
cmd/csv2table/csv2table.go:93
↓ 1 callersFunctionprojectHeuristic
projectHeuristic returns 4 for known project types.
pkg/twwidth/tab.go:197
↓ 1 callersMethodrender
render generates the table output using the configured renderer. No parameters are required. Returns an error if rendering fails in any section.
tablewriter.go:1445
↓ 1 callersMethodrenderBufferedData
renderBufferedData renders all buffered lines to SVG elements. No parameters are required. No return value; populates svgElements buffer.
renderer/svg.go:463
↓ 1 callersMethodrenderVisualLine
renderVisualLine renders a single visual line as SVG elements. Parameters include lineData (cell content), ctx (formatting), and position (section typ
renderer/svg.go:486
↓ 1 callersFunctionshowFormattedDiff
(t *testing.T, actual, expected string)
tests/svg_test.go:184
↓ 1 callersMethodstreamCalculateWidths
streamCalculateWidths determines the fixed column widths for streaming mode. It prioritizes widths from StreamConfig.Widths.PerColumn, then StreamConf
stream.go:468
↓ 1 callersMethodstreamRenderBottomBorder
streamRenderBottomBorder renders the bottom border of the table in streaming mode. It uses the fixed streamWidths and the last rendered content to cre
stream.go:707
↓ 1 callersMethodstreamRenderFooter
streamRenderFooter renders the stored footer lines in streaming mode. It's called by Close(). It renders the Row/Footer separator line first. It assum
stream.go:757
↓ 1 callersMethodstreamRenderHeader
streamRenderHeader processes and renders the header section in streaming mode. It calculates/uses fixed stream widths, processes content, renders bord
stream.go:900
↓ 1 callersMethodstreamStoreFooter
streamStoreFooter processes the footer content and stores it for later rendering by Close() in streaming mode. It ensures stream widths are calculated
stream.go:1121
↓ 1 callersFunctionstringToDisplayWidth
stringToDisplayWidth returns a substring of s that has a display width as close as possible to, but not exceeding, targetWidth. It returns the substri
pkg/twwarp/wrap.go:143
↓ 1 callersFunctiontermHeuristic
termHeuristic returns a default width based on the TERM variable.
pkg/twwidth/tab.go:229
↓ 1 callersFunctiontestWithTabWidth
(t *testing.T, width int, fn func())
tests/feature_test.go:597
MethodAdd
(aligns ...Align)
tw/types.go:72
MethodAdd
Add inserts or updates a key-value pair. Evicts the oldest if cache is full. Returns true if an eviction occurred.
pkg/twcache/lru.go:123
MethodAddColumnCallback
AddColumnCallback adds a callback function for a specific column in the header
config.go:1028
MethodAddColumnCallback
AddColumnCallback adds a callback function for a specific column in the rows
config.go:1064
MethodAddColumnCallback
AddColumnCallback adds a callback function for a specific column in the footer
config.go:1100
MethodAddColumnFilter
AddColumnFilter adds a filter function for a specific column in the header
config.go:920
MethodAddColumnFilter
AddColumnFilter adds a filter function for a specific column in the rows
config.go:956
MethodAddColumnFilter
AddColumnFilter adds a filter function for a specific column in the footer
config.go:992
MethodAddColumnPadding
AddColumnPadding adds padding for a specific column in the header
config.go:718
MethodAddColumnPadding
AddColumnPadding adds padding for a specific column in the rows
config.go:748
MethodAddColumnPadding
AddColumnPadding adds padding for a specific column in the footer
config.go:778
MethodAlignment
Alignment returns an AlignmentConfigBuilder for header alignment
config.go:278
MethodAlignment
Alignment returns an AlignmentConfigBuilder for row alignment
config.go:342
MethodAlignment
Alignment returns an AlignmentConfigBuilder for footer alignment
config.go:406
MethodBehavior
Behavior returns a BehaviorConfigBuilder for behavior configuration
config.go:62
FunctionBenchmarkBlueprint
(b *testing.B)
tests/table_bench_test.go:17
FunctionBenchmarkColorized
(b *testing.B)
tests/table_bench_test.go:47
FunctionBenchmarkLRU_AddNew
(b *testing.B)
pkg/twcache/lru_bench_test.go:38
FunctionBenchmarkLRU_AddUpdate
(b *testing.B)
pkg/twcache/lru_bench_test.go:50
FunctionBenchmarkLRU_GetHit
(b *testing.B)
pkg/twcache/lru_bench_test.go:8
FunctionBenchmarkLRU_GetMiss
(b *testing.B)
pkg/twcache/lru_bench_test.go:23
FunctionBenchmarkLRU_GetOrCompute_Hit
(b *testing.B)
pkg/twcache/lru_bench_test.go:65
FunctionBenchmarkLRU_GetOrCompute_Miss
(b *testing.B)
pkg/twcache/lru_bench_test.go:81
FunctionBenchmarkMarkdown
(b *testing.B)
tests/table_bench_test.go:37
FunctionBenchmarkOcean
(b *testing.B)
tests/table_bench_test.go:27
FunctionBenchmarkStreamBlueprint
(b *testing.B)
tests/table_bench_test.go:57
FunctionBenchmarkStreamOcean
(b *testing.B)
tests/table_bench_test.go:79
FunctionBenchmarkWidthFunction
(b *testing.B)
pkg/twwidth/width_bench_test.go:19
FunctionBenchmarkWrapString
Before optimization: BenchmarkWrapString-16 1 2490331031 ns/op 2535184104 B/op 50905550 allocs/op After optimization: BenchmarkWrapString-1
pkg/twwarp/wrap_test.go:130
FunctionBenchmarkWrapStringWithSpaces
(b *testing.B)
pkg/twwarp/wrap_test.go:143
MethodBottomLeft
()
tw/deprecated.go:17
MethodBottomLeft
()
tw/deprecated.go:43
MethodBottomLeft
()
tw/deprecated.go:64
MethodBottomLeft
()
tw/deprecated.go:85
MethodBottomLeft
Right junction
tw/deprecated.go:106
MethodBottomLeft
Right junction
tw/deprecated.go:132
MethodBottomMid
()
tw/symbols.go:943
MethodBottomMid
()
tw/symbols.go:998
MethodBottomMid
()
tw/deprecated.go:18
MethodBottomMid
()
tw/deprecated.go:44
MethodBottomMid
()
tw/deprecated.go:65
MethodBottomMid
()
tw/deprecated.go:86
MethodBottomMid
Bottom-left corner
tw/deprecated.go:107
MethodBottomMid
()
tw/deprecated.go:133
MethodBottomRight
()
tw/deprecated.go:19
MethodBottomRight
()
tw/deprecated.go:45
MethodBottomRight
()
tw/deprecated.go:66
MethodBottomRight
()
tw/deprecated.go:87
MethodBottomRight
Bottom junction
tw/deprecated.go:108
MethodBottomRight
LevelFooter junction
tw/deprecated.go:134
MethodBuild
Build returns the parent ConfigBuilder
config.go:273
MethodBuild
Build returns the parent ConfigBuilder
config.go:337
MethodBuild
Build returns the parent ConfigBuilder
config.go:401
MethodBuild
Build returns the parent ConfigBuilder
config.go:466
MethodBuild
Build returns the parent HeaderConfigBuilder
config.go:494
MethodBuild
Build returns the parent RowConfigBuilder
config.go:529
MethodBuild
Build returns the parent FooterConfigBuilder
config.go:564
MethodBuild
Build returns the parent HeaderConfigBuilder.
config.go:598
MethodBuild
Build returns the parent RowConfigBuilder.
config.go:632
MethodBuild
Build returns the parent FooterConfigBuilder.
config.go:666
MethodBuild
Build returns the parent HeaderConfigBuilder
config.go:701
MethodBuild
Build returns the parent RowConfigBuilder
config.go:731
MethodBuild
Build returns the parent FooterConfigBuilder
config.go:761
MethodBuild
Build returns the parent ConfigBuilder
config.go:790
MethodBuild
Build returns the parent ConfigBuilder
config.go:843
MethodBuild
Build returns the parent HeaderConfigBuilder
config.go:899
← previousnext →301–400 of 889, ranked by callers