WithHeader defines the column names for a table. Panics if columns is nil or empty.
(columns ...string)
| 90 | // WithHeader defines the column names for a table. |
| 91 | // Panics if columns is nil or empty. |
| 92 | func WithHeader(columns ...string) headerOption { |
| 93 | if len(columns) == 0 { |
| 94 | panic("must define header columns") |
| 95 | } |
| 96 | return headerOption{columns} |
| 97 | } |
| 98 | |
| 99 | // NoHeader disable printing or checking for a table header. |
| 100 | // |
no outgoing calls