WithHasHeader returns a new TablePrinter, where the first line is marked as a header.
(b ...bool)
| 52 | |
| 53 | // WithHasHeader returns a new TablePrinter, where the first line is marked as a header. |
| 54 | func (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. |
| 60 | func (p TablePrinter) WithHeaderStyle(style *Style) *TablePrinter { |