PrintableTable is an implementation of the Table interface. It remembers the headers, the added rows, the column widths, and a number of other things.
| 11 | // remembers the headers, the added rows, the column widths, and a |
| 12 | // number of other things. |
| 13 | type Table struct { |
| 14 | ui UI |
| 15 | headers []string |
| 16 | headerPrinted bool |
| 17 | columnWidth []int |
| 18 | rowHeight []int |
| 19 | rows [][]string |
| 20 | colSpacing string |
| 21 | transformer []Transformer |
| 22 | } |
| 23 | |
| 24 | // Transformer is the type of functions used to modify the content of |
| 25 | // a table cell for actual display. For multi-line content of a cell |
nothing calls this directly
no outgoing calls
no test coverage detected