MCPcopy
hub / github.com/pterm/pterm / WithHasHeader

Method WithHasHeader

table_printer.go:54–57  ·  view source on GitHub ↗

WithHasHeader returns a new TablePrinter, where the first line is marked as a header.

(b ...bool)

Source from the content-addressed store, hash-verified

52
53// WithHasHeader returns a new TablePrinter, where the first line is marked as a header.
54func (p TablePrinter) WithHasHeader(b ...bool) *TablePrinter {
55 p.HasHeader = internal.WithBoolean(b)
56 return &p
57}
58
59// WithHeaderStyle returns a new TablePrinter with a specific HeaderStyle.
60func (p TablePrinter) WithHeaderStyle(style *Style) *TablePrinter {

Callers 10

TestTablePrinter_RenderFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls 1

WithBooleanFunction · 0.92