TablePrinter is able to render tables.
| 27 | |
| 28 | // TablePrinter is able to render tables. |
| 29 | type 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. |
| 48 | func (p TablePrinter) WithStyle(style *Style) *TablePrinter { |
nothing calls this directly
no outgoing calls
no test coverage detected