MCPcopy Create free account

hub / github.com/olekukonko/tablewriter / functions

Functions889 in github.com/olekukonko/tablewriter

FunctionWithFooterMergeMode
Deprecated: Use a ConfigBuilder with .Footer().CellMerging().WithMode(...) instead. This option will be removed in a future version.
option.go:127
MethodWithFooterMergeMode
Deprecated: Use .Footer().CellMerging().WithMode(...) instead. This method will be removed in a future version.
config.go:146
FunctionWithFooterPaddingPerColumn
WithFooterPaddingPerColumn sets per-column padding for footer cells. Logs the change if debugging is enabled.
option.go:178
MethodWithGlobal
WithGlobal sets global alignment
config.go:471
MethodWithGlobal
WithGlobal sets global padding
config.go:706
MethodWithGlobal
WithGlobal sets global padding
config.go:736
MethodWithGlobal
WithGlobal sets global padding
config.go:766
MethodWithGlobal
WithGlobal sets the global filter function for the header
config.go:904
MethodWithGlobal
WithGlobal sets the global filter function for the rows
config.go:940
MethodWithGlobal
WithGlobal sets the global filter function for the footer
config.go:976
MethodWithGlobal
WithGlobal sets the global callback function for the header
config.go:1012
MethodWithGlobal
WithGlobal sets the global callback function for the rows
config.go:1048
MethodWithGlobal
WithGlobal sets the global callback function for the footer
config.go:1084
FunctionWithHeader
WithHeader sets the table headers by calling the Header method.
option.go:202
FunctionWithHeaderAlignment
WithHeaderAlignment sets the text alignment for header cells. Invalid alignments are ignored, and the change is logged if debugging is enabled.
option.go:210
FunctionWithHeaderAlignmentConfig
WithHeaderAlignmentConfig applies a header alignment configuration to the table. Logs the change if debugging is enabled.
option.go:376
MethodWithHeaderAutoFormat
WithHeaderAutoFormat enables or disables automatic formatting (e.g., title case) for header cells.
config.go:166
FunctionWithHeaderAutoWrap
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
MethodWithHeaderAutoWrap
WithHeaderAutoWrap sets the wrapping behavior for header cells (e.g., truncate, normal). Invalid wrap modes are ignored.
config.go:173
FunctionWithHeaderCallbacks
WithHeaderCallbacks sets the callback configuration for header cells. Logs the change if debugging is enabled.
option.go:264
FunctionWithHeaderFilter
WithHeaderFilter sets the filter configuration for header cells. Logs the change if debugging is enabled.
option.go:253
MethodWithHeaderGlobalPadding
WithHeaderGlobalPadding sets the global padding for all header cells.
config.go:182
MethodWithHeaderHide
WithHeaderHide enables/disables header visibility
config.go:813
MethodWithHeaderLeft
(s string)
tw/symbols.go:961
FunctionWithHeaderMaxWidth
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
MethodWithHeaderMaxWidth
WithHeaderMaxWidth sets the maximum content width for header cells. Negative values are ignored.
config.go:189
FunctionWithHeaderMergeMode
Deprecated: Use a ConfigBuilder with .Header().CellMerging().WithMode(...) instead. This option will be removed in a future version.
option.go:238
MethodWithHeaderMid
(s string)
tw/symbols.go:962
FunctionWithHeaderPaddingPerColumn
WithHeaderPaddingPerColumn sets per-column padding for header cells. Logs the change if debugging is enabled.
option.go:275
MethodWithHeaderRight
(s string)
tw/symbols.go:963
FunctionWithLogger
WithLogger sets a custom logger for the table and updates the renderer if present. Logs the change if debugging is enabled.
option.go:398
MethodWithMaxWidth
WithMaxWidth sets the maximum width for the entire table (0 means unlimited). Negative values are treated as 0.
config.go:209
MethodWithMaxWidth
WithMaxWidth sets max width for the column
config.go:876
MethodWithMergeMode
Deprecated: Use .CellMerging().WithMode(...) instead. This method will be removed in a future version.
config.go:513
MethodWithMergeMode
Deprecated: Use .CellMerging().WithMode(...) instead. This method will be removed in a future version.
config.go:548
MethodWithMergeMode
Deprecated: Use .CellMerging().WithMode(...) instead. This method will be removed in a future version.
config.go:583
MethodWithMode
WithMode sets the merge mode (e.g., tw.MergeHorizontal).
config.go:603
MethodWithMode
WithMode sets the merge mode (e.g., tw.MergeHorizontal).
config.go:671
MethodWithPerColumn
WithPerColumn sets per-column alignments
config.go:479
MethodWithPerColumn
WithPerColumn sets per-column padding
config.go:712
MethodWithPerColumn
WithPerColumn sets per-column padding
config.go:742
MethodWithPerColumn
WithPerColumn sets per-column padding
config.go:772
MethodWithPerColumn
WithPerColumn sets per-column filter functions for the header
config.go:912
MethodWithPerColumn
WithPerColumn sets per-column filter functions for the rows
config.go:948
MethodWithPerColumn
WithPerColumn sets per-column filter functions for the footer
config.go:984
MethodWithPerColumn
WithPerColumn sets per-column callback functions for the header
config.go:1020
MethodWithPerColumn
WithPerColumn sets per-column callback functions for the rows
config.go:1056
MethodWithPerColumn
WithPerColumn sets per-column callback functions for the footer
config.go:1092
FunctionWithRendererSettings
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
FunctionWithRowAlignment
WithRowAlignment sets the text alignment for row cells. Invalid alignments are ignored, and the change is logged if debugging is enabled.
option.go:300
MethodWithRowAlignment
WithRowAlignment sets the text alignment for all row cells. Invalid alignments are ignored.
config.go:216
FunctionWithRowAlignmentConfig
WithRowAlignmentConfig applies a row alignment configuration to the table. Logs the change if debugging is enabled.
option.go:435
MethodWithRowAutoFormat
WithRowAutoFormat enables or disables automatic formatting for row cells.
config.go:225
MethodWithRowAutoWrap
WithRowAutoWrap sets the wrapping behavior for row cells (e.g., truncate, normal). Invalid wrap modes are ignored.
config.go:232
FunctionWithRowCallbacks
WithRowCallbacks sets the callback configuration for row cells. Logs the change if debugging is enabled.
option.go:354
FunctionWithRowFilter
WithRowFilter sets the filter configuration for row cells. Logs the change if debugging is enabled.
option.go:343
MethodWithRowGlobalPadding
WithRowGlobalPadding sets the global padding for all row cells.
config.go:241
MethodWithRowMaxWidth
WithRowMaxWidth sets the maximum content width for row cells. Negative values are ignored.
config.go:248
FunctionWithRowMergeMode
Deprecated: Use a ConfigBuilder with .Row().CellMerging().WithMode(...) instead. This option will be removed in a future version.
option.go:328
MethodWithRowMergeMode
Deprecated: Use .Row().CellMerging().WithMode(...) instead. This method will be removed in a future version.
config.go:257
FunctionWithRowPaddingPerColumn
WithRowPaddingPerColumn sets per-column padding for row cells. Logs the change if debugging is enabled.
option.go:365
MethodWithSpot
(spot Spot)
tw/types.go:130
FunctionWithStringerCache
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
FunctionWithStringerCacheCustom
WithStringerCacheCustom enables caching for the stringer function using a specific implementation. Passing nil disables caching entirely.
option.go:501
FunctionWithSymbols
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
MethodWithText
(text string)
tw/types.go:125
MethodWithTrimSpace
WithTrimSpace enables or disables automatic trimming of leading/trailing spaces. Ignored in streaming mode.
config.go:79
MethodWithTrimSpace
WithTrimSpace enables/disables trim space
config.go:801
MethodWithTrimTab
WithTrimTab enables or disables automatic trimming of leading/trailing tabs. Useful for preserving indentation in code blocks while trimming other whi
config.go:86
MethodWithTrimTab
WithTrimTab enables/disables trim tab
config.go:807
MethodWithWidth
(width int)
tw/types.go:140
FunctionWithWidths
WithWidths sets per-column widths for the table. Negative widths are removed, and the change is logged if debugging is enabled.
option.go:56
MethodWrite
(p []byte)
tests/feature_test.go:266
MethodappendSingle
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
FunctionemployeeStringer
employeeStringer converts an Employee struct to a slice of strings for table rendering.
tests/struct_test.go:34
FunctiongetCSVReaderFromStringForPartial
(data string)
tests/csv_test.go:199
FunctiongetFooterConfig
()
cmd/csv2table/csv2table.go:473
FunctiongetLines
getLines decomposes a multiline string into a slice of strings.
pkg/twwarp/wrap.go:227
Functioninit
()
pkg/twwidth/width.go:39
Methodinit
()
pkg/twwidth/tab.go:75
Functionmain
()
cmd/csv2table/csv2table.go:41
Functionmain
()
_example/symbols/main.go:13
Functionmain
()
_example/filetable/main.go:22
FunctionpadLineSVG
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
MethodprepareTableSection
prepareTableSection prepares either headers or footers for the table
zoo.go:1538
MethodrenderFooter
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
MethodrenderHeader
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
MethodrenderRow
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
MethodrenderTopBorderIfNeeded
renderTopBorderIfNeeded is called by Header or Row if it's the first to render and tableOutputStarted is false.
renderer/ocean.go:85
← previous801–889 of 889, ranked by callers