MCPcopy Index your code
hub / github.com/pterm/pterm / WithAlternateRowStyle

Method WithAlternateRowStyle

table_printer.go:144–147  ·  view source on GitHub ↗

WithAlternateRowStyle returns a new TablePrinter with a specific AlternateRowStyle.

(style *Style)

Source from the content-addressed store, hash-verified

142
143// WithAlternateRowStyle returns a new TablePrinter with a specific AlternateRowStyle.
144func (p TablePrinter) WithAlternateRowStyle(style *Style) *TablePrinter {
145 p.AlternateRowStyle = style
146 return &p
147}
148
149type table struct {
150 rows []row

Callers 2

mainFunction · 0.80

Calls

no outgoing calls