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

Struct TablePrinter

table_printer.go:29–45  ·  view source on GitHub ↗

TablePrinter is able to render tables.

Source from the content-addressed store, hash-verified

27
28// TablePrinter is able to render tables.
29type TablePrinter struct {
30 Style *Style
31 HasHeader bool
32 HeaderStyle *Style
33 HeaderRowSeparator string
34 HeaderRowSeparatorStyle *Style
35 Separator string
36 SeparatorStyle *Style
37 RowSeparator string
38 RowSeparatorStyle *Style
39 Data TableData
40 Boxed bool
41 LeftAlignment bool
42 RightAlignment bool
43 Writer io.Writer
44 AlternateRowStyle *Style
45}
46
47// WithStyle returns a new TablePrinter with a specific Style.
48func (p TablePrinter) WithStyle(style *Style) *TablePrinter {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected