MCPcopy Create free account

hub / github.com/olekukonko/tablewriter / functions

Functions889 in github.com/olekukonko/tablewriter

↓ 2 callersMethodRow
Row returns a RowConfigBuilder for row configuration
config.go:46
↓ 2 callersMethodRow
()
tw/symbols.go:935
↓ 2 callersMethodRow
()
tw/symbols.go:990
↓ 2 callersMethodRune
()
pkg/twwidth/tab.go:28
↓ 2 callersFunctionSetCacheCapacity
SetCacheCapacity changes the cache size dynamically If capacity <= 0, disables caching entirely
pkg/twwidth/cache.go:15
↓ 2 callersFunctionSetCondition
SetCondition sets the global East Asian width setting based on a runewidth.Condition. Deprecated: use SetOptions with the new twwidth.Options struct i
pkg/twwidth/width.go:112
↓ 2 callersFunctionSetOptions
SetOptions sets the global options for width calculation. This function is thread-safe.
pkg/twwidth/width.go:142
↓ 2 callersFunctionSetTabWidth
SetTabWidth sets the global tab width.
pkg/twwidth/tab.go:280
↓ 2 callersMethodSize
Size returns the current tab width, default if unset.
pkg/twwidth/tab.go:52
↓ 2 callersFunctionSplitCamelCase
SplitCamelCase splits a camelCase or PascalCase or snake_case string into separate words. It detects transitions between uppercase, lowercase, digits,
tw/fn.go:124
↓ 2 callersMethodString
()
_example/filetable/main.go:85
↓ 2 callersFunctionTabInstance
TabInstance returns the singleton Tabinal.
pkg/twwidth/tab.go:267
↓ 2 callersFunctionTitle
Title normalizes and uppercases a label string for use in headers. It replaces underscores and certain dots with spaces and trims whitespace.
tw/fn.go:22
↓ 2 callersFunctionWidthNoCache
WidthNoCache calculates the visual width of a string without using the global cache. Example: width := twdw.WidthNoCache("Hello\x1b[31mWorld") // R
pkg/twwidth/width.go:370
↓ 2 callersFunctionWithCounters
WithCounters enables line counting by wrapping the table's writer. If a custom counter (that implements tw.Counter) is provided, it will be used. If t
option.go:711
↓ 2 callersMethodWithHeaderAlignment
WithHeaderAlignment sets the text alignment for all header cells. Invalid alignments are ignored.
config.go:157
↓ 2 callersFunctionWithHeaderControl
WithHeaderControl sets the control behavior for the table header. Logs the change if debugging is enabled.
option.go:588
↓ 2 callersMethodWithHeaderMergeMode
Deprecated: Use .Header().CellMerging().WithMode(...) instead. This method will be removed in a future version.
config.go:198
↓ 2 callersMethodWithMode
WithMode sets the merge mode (e.g., tw.MergeVertical, tw.MergeHierarchical).
config.go:637
↓ 2 callersFunctionWrapStringWithSpaces
WrapStringWithSpaces wraps a string into lines of a specified display width while preserving leading and trailing spaces. It splits the input string i
pkg/twwarp/wrap.go:80
↓ 2 callersFunctionWrapWords
WrapWords is the low-level line-breaking algorithm, useful if you need more control over the details of the text wrapping process. For most uses, Wrap
pkg/twwarp/wrap.go:177
↓ 2 callersMethodapplyHorizontalMerges
applyHorizontalMerges adjusts column widths for horizontal merges. Parameters include position, ctx for rendering, and mergeStates for merges. No retu
zoo.go:174
↓ 2 callersMethodbuildAdjacentCells
buildAdjacentCells constructs cell contexts for adjacent lines. Parameters include ctx, mctx, hctx, and direction (-1 for prev, +1 for next). Returns
zoo.go:380
↓ 2 callersFunctiondefaultBlueprint
defaultBlueprint returns a default Rendition for ASCII table rendering with borders and light symbols.
renderer/fn.go:11
↓ 2 callersFunctiondetectEastAsian
detectEastAsian evaluates the environment and locale settings to determine if East Asian width rules should apply.
pkg/twwidth/ea.go:236
↓ 2 callersMethodextractFieldsAndValuesFromStruct
extractFieldsAndValuesFromStruct is the new single source of truth for struct reflection. It recursively processes a struct, handling pointers and emb
zoo.go:1659
↓ 2 callersMethodextractHeadersFromStruct
extractHeadersFromStruct is now a thin wrapper around the new unified function. It only cares about the header names.
zoo.go:1651
↓ 2 callersMethodfinalizeHierarchicalMergeBlock
finalizeHierarchicalMergeBlock sets Span and End for hierarchical merges. Parameters include ctx, mctx, col, startRow, and endRow. No return value.
tablewriter.go:695
↓ 2 callersFunctiongetCSVReaderFromString
(data string)
tests/csv_test.go:21
↓ 2 callersFunctiongetLastContentLine
(buf *bytes.Buffer)
tests/fn.go:272
↓ 2 callersFunctiongetNormalizedLocale
getNormalizedLocale returns the normalized locale by inspecting environment variables LC_ALL, LC_CTYPE, and LANG.
pkg/twwidth/ea.go:400
↓ 2 callersMethodgetNumColsToUse
getNumColsToUse determines the number of columns to use for rendering, based on streaming or batch mode. Returns the number of columns (streamNumCols
zoo.go:1517
↓ 2 callersMethodhasFooterElements
hasFooterElements checks if the footer has renderable elements. No parameters are required. Returns true if footer has content or padding, false other
tablewriter.go:773
↓ 2 callersFunctionisCJKLocale
isCJKLocale determines if a given locale string corresponds to a CJK (Chinese, Japanese, Korean) language or region.
pkg/twwidth/ea.go:378
↓ 2 callersFunctionisGraphicalRenderer
(rendererName string)
cmd/csv2table/csv2table.go:479
↓ 2 callersFunctionmergeConfig
mergeConfig merges a source Config into a destination Config, prioritizing non-default source values. It performs deep merging for complex types like
option.go:927
↓ 2 callersFunctionmergeStreamConfig
mergeStreamConfig merges a source StreamConfig into a destination StreamConfig, prioritizing non-default source values.
option.go:971
↓ 2 callersFunctionnormalizeSVG
normalizeSVG performs lightweight normalization for fast comparison
tests/svg_test.go:51
↓ 2 callersMethodprepareFooter
prepareFooter processes footer content and applies merges. Parameters ctx and mctx hold rendering and merge state. No return value.
tablewriter.go:1209
↓ 2 callersMethodprintTopBottomCaption
printTopBottomCaption prints the table's caption at the specified top or bottom position. It wraps the caption text to fit the table width or a user-d
tablewriter.go:835
↓ 2 callersFunctionresetGlobalCache
()
pkg/twwidth/width_test.go:23
↓ 2 callersMethodstreamAppendRow
streamAppendRow processes and renders a single row in streaming mode. It calculates/uses fixed stream widths, processes content, renders separators an
stream.go:201
↓ 2 callersFunctionstrip
(s string)
pkg/twwidth/width.go:414
↓ 1 callersMethodBottomLeft
Right junction
tw/symbols.go:21
↓ 1 callersMethodBottomLeft
()
tw/symbols.go:942
↓ 1 callersMethodBottomLeft
()
tw/symbols.go:997
↓ 1 callersMethodBottomRight
()
tw/symbols.go:944
↓ 1 callersMethodBottomRight
()
tw/symbols.go:999
↓ 1 callersFunctionBreakPoint
BreakPoint finds the rune index where the display width of a string first exceeds the specified limit. It returns the number of runes if the entire st
tw/fn.go:197
↓ 1 callersMethodCenter
()
tw/symbols.go:934
↓ 1 callersMethodCenter
()
tw/symbols.go:989
↓ 1 callersMethodCenter
()
tw/deprecated.go:35
↓ 1 callersMethodCenter
()
tw/deprecated.go:124
↓ 1 callersMethodConfig
()
renderer/ocean.go:57
↓ 1 callersMethodConfig
Config returns the renderer's current configuration.
renderer/blueprint.go:57
↓ 1 callersMethodCounters
Counters returns the slice of all active counter instances. This is useful when multiple counters are enabled. It must be called *after* Render().
tablewriter.go:554
↓ 1 callersFunctionDebugging
Debugging returns detailed information about the detection decision. Useful for users to include in Github issues.
pkg/twwidth/ea.go:207
↓ 1 callersFunctionDisplay
Display calculates the visual width of a string using a specific runewidth.Condition. Deprecated: use WidthWithOptions with the new twwidth.Options st
pkg/twwidth/width.go:61
↓ 1 callersFunctionEastAsianMode
EastAsianMode returns the decision path used for the current environment. Useful for debugging why a specific width was chosen.
pkg/twwidth/ea.go:174
↓ 1 callersMethodEmpty
Empty reports whether all padding strings are empty (all fields == ""). Note that an Empty padding may still take effect if Overwrite is true.
tw/types.go:213
↓ 1 callersMethodLine
(ctx tw.Formatting)
renderer/ocean.go:176
↓ 1 callersMethodMidLeft
()
tw/deprecated.go:41
↓ 1 callersMethodMidLeft
()
tw/deprecated.go:130
↓ 1 callersMethodMidRight
()
tw/deprecated.go:42
↓ 1 callersMethodMidRight
Left junction
tw/deprecated.go:131
↓ 1 callersFunctionPad
Pad aligns a string within a specified width using a padding character. It truncates if the string is wider than the target width.
tw/fn.go:84
↓ 1 callersFunctionPadCenter
PadCenter centers a string within a specified width using a padding character. Extra padding is split between left and right, with slight preference t
tw/fn.go:48
↓ 1 callersMethodReset
Reset clears the renderer's internal state, including debug traces and merge tracking.
renderer/html.go:414
↓ 1 callersMethodSetWidth
SetWidth sets the tab width if valid (1–32).
pkg/twwidth/tab.go:66
↓ 1 callersMethodString
()
tw/symbols.go:86
↓ 1 callersFunctionStripColors
StripColors removes ANSI color codes from a string.
tests/fn.go:194
↓ 1 callersMethodTopLeft
Vertical line symbol Corner and junction symbols
tw/symbols.go:16
↓ 1 callersMethodTopLeft
()
tw/symbols.go:937
↓ 1 callersMethodTopLeft
()
tw/symbols.go:992
↓ 1 callersMethodTopRight
()
tw/symbols.go:939
↓ 1 callersMethodTopRight
()
tw/symbols.go:994
↓ 1 callersFunctionWithMaxWidth
WithMaxWidth sets a global maximum table width for the table. Negative values are ignored, and the change is logged if debugging is enabled.
option.go:42
↓ 1 callersFunctionWithRowAutoFormat
WithRowAutoFormat enables or disables automatic formatting for row cells. Logs the change if debugging is enabled.
option.go:577
↓ 1 callersFunctionWithRowAutoWrap
WithRowAutoWrap sets the wrapping behavior for row cells. Invalid wrap modes are ignored, and the change is logged if debugging is enabled.
option.go:314
↓ 1 callersFunctionWithStringer
WithStringer sets a custom stringer function for converting row data and clears the stringer cache. Logs the change if debugging is enabled.
option.go:471
↓ 1 callersFunctionWithTrimLine
WithTrimLine sets whether empty visual lines within a cell are trimmed. Logs the change if debugging is enabled.
option.go:544
↓ 1 callersMethodapplyHierarchicalMerges
applyHierarchicalMerges applies hierarchical merges to row content. Parameters ctx and mctx hold rendering and merge state. No return value.
zoo.go:20
↓ 1 callersMethodapplyVerticalMerges
applyVerticalMerges applies vertical merges to row content. Parameters ctx and mctx hold rendering and merge state. No return value.
zoo.go:242
↓ 1 callersMethodcalculateAllColumnWidths
calculateAllColumnWidths computes column widths based on content and merges. Uses content length and merge spans; handles horizontal merges by distrib
renderer/svg.go:153
↓ 1 callersMethodcalculateAndNormalizeWidths
calculateAndNormalizeWidths computes and normalizes column widths. Parameter ctx holds rendering state with width maps. Returns an error if width calc
zoo.go:620
↓ 1 callersFunctioncompareFloatStrings
(a, b string)
tests/svg_test.go:172
↓ 1 callersFunctioncompareSVGStructure
compareSVGStructure does structural XML comparison
tests/svg_test.go:99
↓ 1 callersFunctioncompareXMLNodes
compareXMLNodes recursively compares XML nodes
tests/svg_test.go:113
↓ 1 callersFunctioncontainsIndentedLine
Helper to check if a specific line content in the table retains whitespace/tab indentation
tests/feature_test.go:581
↓ 1 callersMethodconvertItemToCells
convertItemToCells is responsible for converting a single input item (which could be a struct, a basic type, or an item implementing Stringer/Formatte
zoo.go:1220
↓ 1 callersFunctiondefaultColorized
defaultColorized returns a default ColorizedConfig optimized for dark terminal backgrounds with colored headers, rows, and borders.
renderer/fn.go:41
↓ 1 callersFunctiondefaultOceanRendererConfig
defaultOceanRendererConfig returns a base tw.Rendition for the Ocean renderer.
renderer/fn.go:85
↓ 1 callersMethoddetect
detect determines tab width using env, editorconfig, project, or term.
pkg/twwidth/tab.go:83
↓ 1 callersMethoddetermineLocation
determineLocation determines the boundary location for a line. Parameters include lineIdx, totalLines, topPad, and bottomPad. Returns a tw.Location in
zoo.go:1416
↓ 1 callersFunctioneditorConfigTabWidth
()
pkg/twwidth/tab.go:105
↓ 1 callersMethodestimateTextWidth
estimateTextWidth estimates text width in SVG units. Parameter text is the input string to measure. Returns the estimated width based on font size and
renderer/svg.go:388
↓ 1 callersMethodfetchEmployees
fetchEmployees simulates fetching data from a database.
tests/struct_test.go:29
↓ 1 callersMethodformatCell
formatCell formats a Markdown cell's content with padding and alignment, ensuring at least 3 characters wide.
renderer/markdown.go:157
↓ 1 callersMethodformatCell
formatCell formats a cell's content with color, width, padding, and alignment, handling whitespace trimming and truncation.
renderer/colorized.go:344
↓ 1 callersMethodformatCell
formatCell formats a cell's content with specified width, padding, and alignment, returning an empty string if width is non-positive.
renderer/blueprint.go:272
← previousnext →201–300 of 889, ranked by callers