Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/olekukonko/tablewriter
/ functions
Functions
889 in github.com/olekukonko/tablewriter
⨍
Functions
889
◇
Types & classes
130
Function
WithFooterMergeMode
Deprecated: Use a ConfigBuilder with .Footer().CellMerging().WithMode(...) instead. This option will be removed in a future version.
option.go:127
Method
WithFooterMergeMode
Deprecated: Use .Footer().CellMerging().WithMode(...) instead. This method will be removed in a future version.
config.go:146
Function
WithFooterPaddingPerColumn
WithFooterPaddingPerColumn sets per-column padding for footer cells. Logs the change if debugging is enabled.
option.go:178
Method
WithGlobal
WithGlobal sets global alignment
config.go:471
Method
WithGlobal
WithGlobal sets global padding
config.go:706
Method
WithGlobal
WithGlobal sets global padding
config.go:736
Method
WithGlobal
WithGlobal sets global padding
config.go:766
Method
WithGlobal
WithGlobal sets the global filter function for the header
config.go:904
Method
WithGlobal
WithGlobal sets the global filter function for the rows
config.go:940
Method
WithGlobal
WithGlobal sets the global filter function for the footer
config.go:976
Method
WithGlobal
WithGlobal sets the global callback function for the header
config.go:1012
Method
WithGlobal
WithGlobal sets the global callback function for the rows
config.go:1048
Method
WithGlobal
WithGlobal sets the global callback function for the footer
config.go:1084
Function
WithHeader
WithHeader sets the table headers by calling the Header method.
option.go:202
Function
WithHeaderAlignment
WithHeaderAlignment sets the text alignment for header cells. Invalid alignments are ignored, and the change is logged if debugging is enabled.
option.go:210
Function
WithHeaderAlignmentConfig
WithHeaderAlignmentConfig applies a header alignment configuration to the table. Logs the change if debugging is enabled.
option.go:376
Method
WithHeaderAutoFormat
WithHeaderAutoFormat enables or disables automatic formatting (e.g., title case) for header cells.
config.go:166
Function
WithHeaderAutoWrap
WithHeaderAutoWrap sets the wrapping behavior for header cells. Invalid wrap modes are ignored, and the change is logged if debugging is enabled.
option.go:224
Method
WithHeaderAutoWrap
WithHeaderAutoWrap sets the wrapping behavior for header cells (e.g., truncate, normal). Invalid wrap modes are ignored.
config.go:173
Function
WithHeaderCallbacks
WithHeaderCallbacks sets the callback configuration for header cells. Logs the change if debugging is enabled.
option.go:264
Function
WithHeaderFilter
WithHeaderFilter sets the filter configuration for header cells. Logs the change if debugging is enabled.
option.go:253
Method
WithHeaderGlobalPadding
WithHeaderGlobalPadding sets the global padding for all header cells.
config.go:182
Method
WithHeaderHide
WithHeaderHide enables/disables header visibility
config.go:813
Method
WithHeaderLeft
(s string)
tw/symbols.go:961
Function
WithHeaderMaxWidth
WithHeaderMaxWidth sets the maximum content width for header cells. Negative values are ignored, and the change is logged if debugging is enabled.
option.go:286
Method
WithHeaderMaxWidth
WithHeaderMaxWidth sets the maximum content width for header cells. Negative values are ignored.
config.go:189
Function
WithHeaderMergeMode
Deprecated: Use a ConfigBuilder with .Header().CellMerging().WithMode(...) instead. This option will be removed in a future version.
option.go:238
Method
WithHeaderMid
(s string)
tw/symbols.go:962
Function
WithHeaderPaddingPerColumn
WithHeaderPaddingPerColumn sets per-column padding for header cells. Logs the change if debugging is enabled.
option.go:275
Method
WithHeaderRight
(s string)
tw/symbols.go:963
Function
WithLogger
WithLogger sets a custom logger for the table and updates the renderer if present. Logs the change if debugging is enabled.
option.go:398
Method
WithMaxWidth
WithMaxWidth sets the maximum width for the entire table (0 means unlimited). Negative values are treated as 0.
config.go:209
Method
WithMaxWidth
WithMaxWidth sets max width for the column
config.go:876
Method
WithMergeMode
Deprecated: Use .CellMerging().WithMode(...) instead. This method will be removed in a future version.
config.go:513
Method
WithMergeMode
Deprecated: Use .CellMerging().WithMode(...) instead. This method will be removed in a future version.
config.go:548
Method
WithMergeMode
Deprecated: Use .CellMerging().WithMode(...) instead. This method will be removed in a future version.
config.go:583
Method
WithMode
WithMode sets the merge mode (e.g., tw.MergeHorizontal).
config.go:603
Method
WithMode
WithMode sets the merge mode (e.g., tw.MergeHorizontal).
config.go:671
Method
WithPerColumn
WithPerColumn sets per-column alignments
config.go:479
Method
WithPerColumn
WithPerColumn sets per-column padding
config.go:712
Method
WithPerColumn
WithPerColumn sets per-column padding
config.go:742
Method
WithPerColumn
WithPerColumn sets per-column padding
config.go:772
Method
WithPerColumn
WithPerColumn sets per-column filter functions for the header
config.go:912
Method
WithPerColumn
WithPerColumn sets per-column filter functions for the rows
config.go:948
Method
WithPerColumn
WithPerColumn sets per-column filter functions for the footer
config.go:984
Method
WithPerColumn
WithPerColumn sets per-column callback functions for the header
config.go:1020
Method
WithPerColumn
WithPerColumn sets per-column callback functions for the rows
config.go:1056
Method
WithPerColumn
WithPerColumn sets per-column callback functions for the footer
config.go:1092
Function
WithRendererSettings
WithRendererSettings updates the renderer's settings, such as separators and line styles. This function is deprecated and will be removed in a future
deprecated.go:91
Function
WithRowAlignment
WithRowAlignment sets the text alignment for row cells. Invalid alignments are ignored, and the change is logged if debugging is enabled.
option.go:300
Method
WithRowAlignment
WithRowAlignment sets the text alignment for all row cells. Invalid alignments are ignored.
config.go:216
Function
WithRowAlignmentConfig
WithRowAlignmentConfig applies a row alignment configuration to the table. Logs the change if debugging is enabled.
option.go:435
Method
WithRowAutoFormat
WithRowAutoFormat enables or disables automatic formatting for row cells.
config.go:225
Method
WithRowAutoWrap
WithRowAutoWrap sets the wrapping behavior for row cells (e.g., truncate, normal). Invalid wrap modes are ignored.
config.go:232
Function
WithRowCallbacks
WithRowCallbacks sets the callback configuration for row cells. Logs the change if debugging is enabled.
option.go:354
Function
WithRowFilter
WithRowFilter sets the filter configuration for row cells. Logs the change if debugging is enabled.
option.go:343
Method
WithRowGlobalPadding
WithRowGlobalPadding sets the global padding for all row cells.
config.go:241
Method
WithRowMaxWidth
WithRowMaxWidth sets the maximum content width for row cells. Negative values are ignored.
config.go:248
Function
WithRowMergeMode
Deprecated: Use a ConfigBuilder with .Row().CellMerging().WithMode(...) instead. This option will be removed in a future version.
option.go:328
Method
WithRowMergeMode
Deprecated: Use .Row().CellMerging().WithMode(...) instead. This method will be removed in a future version.
config.go:257
Function
WithRowPaddingPerColumn
WithRowPaddingPerColumn sets per-column padding for row cells. Logs the change if debugging is enabled.
option.go:365
Method
WithSpot
(spot Spot)
tw/types.go:130
Function
WithStringerCache
WithStringerCache enables the default LRU caching for the stringer function. It initializes the cache with a default capacity if one does not already
option.go:483
Function
WithStringerCacheCustom
WithStringerCacheCustom enables caching for the stringer function using a specific implementation. Passing nil disables caching entirely.
option.go:501
Function
WithSymbols
WithSymbols sets the symbols used for drawing table borders and separators. The symbols are applied to the table's renderer configuration, if a render
option.go:689
Method
WithText
(text string)
tw/types.go:125
Method
WithTrimSpace
WithTrimSpace enables or disables automatic trimming of leading/trailing spaces. Ignored in streaming mode.
config.go:79
Method
WithTrimSpace
WithTrimSpace enables/disables trim space
config.go:801
Method
WithTrimTab
WithTrimTab enables or disables automatic trimming of leading/trailing tabs. Useful for preserving indentation in code blocks while trimming other whi
config.go:86
Method
WithTrimTab
WithTrimTab enables/disables trim tab
config.go:807
Method
WithWidth
(width int)
tw/types.go:140
Function
WithWidths
WithWidths sets per-column widths for the table. Negative widths are removed, and the change is logged if debugging is enabled.
option.go:56
Method
Write
(p []byte)
tests/feature_test.go:266
Method
appendSingle
appendSingle adds a single row to the table's row data. Parameter row is the data to append, converted via stringer if needed. Returns an error if con
tablewriter.go:595
Function
employeeStringer
employeeStringer converts an Employee struct to a slice of strings for table rendering.
tests/struct_test.go:34
Function
getCSVReaderFromStringForPartial
(data string)
tests/csv_test.go:199
Function
getFooterConfig
()
cmd/csv2table/csv2table.go:473
Function
getLines
getLines decomposes a multiline string into a slice of strings.
pkg/twwarp/wrap.go:227
Function
init
()
pkg/twwidth/width.go:39
Method
init
()
pkg/twwidth/tab.go:75
Function
main
()
cmd/csv2table/csv2table.go:41
Function
main
()
_example/symbols/main.go:13
Function
main
()
_example/filetable/main.go:22
Function
padLineSVG
padLineSVG pads a line to the specified column count. Parameters include line (input strings) and numCols (target length). Returns the padded line wit
renderer/svg.go:444
Method
prepareTableSection
prepareTableSection prepares either headers or footers for the table
zoo.go:1538
Method
renderFooter
renderFooter renders the table's footer section with borders and padding. Parameters ctx and mctx hold rendering and merge state. Returns an error if
tablewriter.go:1612
Method
renderHeader
renderHeader renders the table's header section with borders and padding. Parameters ctx and mctx hold rendering and merge state. Returns an error if
tablewriter.go:1962
Method
renderRow
renderRow renders the table's row section with borders and padding. Parameters ctx and mctx hold rendering and merge state. Returns an error if render
tablewriter.go:2174
Method
renderTopBorderIfNeeded
renderTopBorderIfNeeded is called by Header or Row if it's the first to render and tableOutputStarted is false.
renderer/ocean.go:85
← previous
801–889 of 889, ranked by callers