MCPcopy Create free account

hub / github.com/olekukonko/tablewriter / functions

Functions889 in github.com/olekukonko/tablewriter

MethodIsEmpty
IsEmpty returns true if the slice is nil or has zero elements.
tw/slicer.go:52
FunctionIsNumeric
IsNumeric checks if a string represents a valid integer or floating-point number.
tw/fn.go:108
MethodIsTab
IsTab returns true if t equals the default tab.
pkg/twwidth/tab.go:20
MethodLast
Last returns the last element of the slice, or the zero value if empty.
tw/slicer.go:67
MethodLine
Line is a no-op for Markdown, as only the header separator is rendered (handled by Header).
renderer/markdown.go:114
MethodLine
Line is a no-op for HTML rendering, as structural lines are handled by tags.
renderer/html.go:411
MethodLine
Line handles border rendering (ignored in SVG renderer). Parameters include w (w) and ctx (formatting). No return value; SVG borders are drawn in Clos
renderer/svg.go:437
MethodLine
Line renders a horizontal row line with colored junctions and segments, skipping zero-width columns.
renderer/colorized.go:169
MethodLine
Line renders a full horizontal row line with junctions and segments.
renderer/blueprint.go:79
MethodLogger
Logger retrieves the table's logger instance. No parameters are required. Returns the ll.Logger instance used for debug tracing.
tablewriter.go:798
MethodLogger
(logger *ll.Logger)
renderer/markdown.go:62
MethodLogger
(logger *ll.Logger)
renderer/ocean.go:53
MethodLogger
(logger *ll.Logger)
renderer/html.go:71
MethodLogger
(logger *ll.Logger)
renderer/svg.go:668
MethodLogger
Logger sets the logger for the Colorized instance.
renderer/colorized.go:310
MethodLogger
Logger sets the logger for the Blueprint instance.
renderer/blueprint.go:250
MethodMap
Map returns a new Slicer with each element transformed by the provided function.
tw/slicer.go:91
MethodMapValues
MapValues returns a new Mapper with the same keys but values transformed by the provided function.
tw/mapper.go:134
FunctionMaskCard
MaskCard masks credit card-like numbers, keeping only the last four digits visible.
tests/fn.go:45
FunctionMaskEmail
MaskEmail masks email addresses in a slice of strings, replacing all but the first character of the local part with asterisks.
tests/fn.go:21
FunctionMaskPassword
MaskPassword masks strings that resemble passwords (containing "pass" or 8+ characters) with asterisks.
tests/fn.go:35
MethodMerging
Merging returns a HeaderMergingBuilder for configuring cell merging.
config.go:296
MethodMerging
Merging returns a FooterMergingBuilder for configuring cell merging.
config.go:424
MethodMidLeft
()
tw/symbols.go:940
MethodMidLeft
()
tw/symbols.go:995
MethodMidLeft
()
tw/deprecated.go:15
MethodMidLeft
()
tw/deprecated.go:62
MethodMidLeft
()
tw/deprecated.go:83
MethodMidLeft
Top-right corner
tw/deprecated.go:104
MethodMidRight
()
tw/symbols.go:941
MethodMidRight
()
tw/symbols.go:996
MethodMidRight
()
tw/deprecated.go:16
MethodMidRight
()
tw/deprecated.go:63
MethodMidRight
()
tw/deprecated.go:84
MethodMidRight
Left junction
tw/deprecated.go:105
FunctionMin
Min returns the smaller of two integers.
tw/fn.go:188
MethodName
Implement all Symbols interface methods
tw/symbols.go:933
MethodName
Glyphs symbol methods
tw/symbols.go:988
MethodName
SymbolASCII symbol methods
tw/deprecated.go:8
MethodName
SymbolUnicode symbol methods
tw/deprecated.go:34
MethodName
SymbolMarkdown symbol methods
tw/deprecated.go:55
MethodName
SymbolNothing symbol methods
tw/deprecated.go:76
MethodName
SymbolGraphical symbol methods
tw/deprecated.go:97
MethodName
SymbolMerger symbol methods
tw/deprecated.go:123
FunctionNewBoolMapper
(keys ...K)
tw/mapper.go:214
FunctionNewCSV
NewCSV Start A new table by importing from a CSV file Takes io.Writer and csv File name
csv.go:11
FunctionNewIdentityMapper
(keys ...K)
tw/mapper.go:236
FunctionNewIntMapper
(keys ...K)
tw/mapper.go:225
FunctionNewLRU
NewLRU creates a new LRU cache with the given size. Returns nil if size <= 0, acting as a disabled cache. Caps size at 100,000 for reasonableness.
pkg/twcache/lru.go:38
FunctionNewSlicer
NewSlicer creates and returns a new initialized Slicer.
tw/slicer.go:9
FunctionOr
Or provides a ternary-like operation for strings, returning 'valid' if cond is true, else 'inValid'.
tw/fn.go:172
MethodOr
Or returns this state if enabled, else the provided state
tw/state.go:34
MethodPadding
Padding returns a HeaderPaddingBuilder for header padding
config.go:304
MethodPadding
Padding returns a RowPaddingBuilder for row padding
config.go:368
MethodPadding
Padding returns a FooterPaddingBuilder for footer padding
config.go:432
MethodPrepend
Prepend adds elements to the beginning of the slice and returns the new slice.
tw/slicer.go:38
MethodPreview
Preview renders a small sample table to visualize the border style
tw/symbols.go:966
MethodPreview
Preview renders a small sample table to visualize the border style
tw/symbols.go:1005
MethodPurge
Purge clears all entries from the cache. Calls onEvict for each entry if set. Resets hit/miss counters.
pkg/twcache/lru.go:168
MethodRendition
(config tw.Rendition)
renderer/ocean.go:456
MethodRendition
Rendition updates the parts of ColorizedConfig that correspond to tw.Rendition by merging the provided newRendition. Color-specific Tints are not modi
renderer/colorized.go:679
MethodRendition
Rendition updates the Blueprint's configuration.
renderer/blueprint.go:602
MethodReset
Reset clears all data (headers, rows, footers, caption) and rendering state from the table, allowing the Table instance to be reused for a new table w
tablewriter.go:476
MethodReset
Reset clears the renderer's internal state, including debug traces.
renderer/markdown.go:119
MethodReset
Reset clears the renderer's internal state, including debug traces.
renderer/colorized.go:315
MethodRow
Renders table header
tw/renderer.go:14
MethodRow
()
tw/deprecated.go:10
MethodRow
()
tw/deprecated.go:36
MethodRow
()
tw/deprecated.go:57
MethodRow
()
tw/deprecated.go:78
MethodRow
Orange square (matches mid junctions)
tw/deprecated.go:99
MethodRow
Main crossing symbol
tw/deprecated.go:125
MethodRow
Row renders a Markdown table data row.
renderer/markdown.go:95
MethodRow
(row []string, ctx tw.Formatting)
renderer/ocean.go:133
MethodRow
Row renders a <tr> element within <tbody>, supporting horizontal and vertical merges.
renderer/html.go:210
MethodRow
Row buffers a row line for SVG rendering. Parameters include w (w), rowLine (cells), and ctx (formatting). No return value; stores data for later rend
renderer/svg.go:663
MethodRow
Row renders a table data row with configured colors and formatting.
renderer/colorized.go:321
MethodRow
Row renders a table data row with configured formatting.
renderer/blueprint.go:255
MethodSet
(col int, align Align)
tw/types.go:78
FunctionSetForceNarrow
SetForceNarrow to preserve the new flag, or create a new setter
pkg/twwidth/width.go:133
MethodSlicer
Slicer converts the Mapper to a Slicer of key-value pairs.
tw/mapper.go:152
FunctionSlicerToMapper
SlicerToMapper converts a Slicer of KeyValuePair to a Mapper.
tw/slicer.go:125
MethodStart
(w io.Writer)
renderer/markdown.go:123
MethodStart
(w io.Writer)
renderer/ocean.go:74
MethodStart
Start begins the HTML table rendering by opening the <table> tag.
renderer/html.go:99
MethodStart
Start initializes SVG rendering. Parameter w is the output w. Returns nil; prepares internal state.
renderer/svg.go:675
MethodStart
Start initializes the rendering process (no-op in this implementation).
renderer/colorized.go:337
MethodStart
Start initializes the rendering process (no-op in this implementation).
renderer/blueprint.go:265
MethodString
String returns the string representation of a border style
tw/symbols.go:187
MethodString
()
tw/types.go:59
MethodString
()
pkg/twwidth/tab.go:47
MethodString
()
tests/table_bench_test.go:15
FunctionTestAlignmentMigration
(t *testing.T)
tests/basic_test.go:681
FunctionTestAutoHeaderScenarios
(t *testing.T)
tests/struct_test.go:138
FunctionTestAutoHideFeature
(t *testing.T)
tests/extra_test.go:209
FunctionTestAutoUseEastAsian_Cache
(t *testing.T)
pkg/twwidth/ea_test.go:164
FunctionTestBasicTableASCII
(t *testing.T)
tests/basic_test.go:141
FunctionTestBasicTableDefault
(t *testing.T)
tests/basic_test.go:13
FunctionTestBasicTableDefaultBorder
(t *testing.T)
tests/basic_test.go:36
FunctionTestBasicTableUnicodeDouble
(t *testing.T)
tests/basic_test.go:187
← previousnext →501–600 of 889, ranked by callers