AddRow adds a data row. plain holds the visible text for width calculation; colored holds the text to render (may contain ANSI codes).
(plain, colored []string)
| 39 | // AddRow adds a data row. plain holds the visible text for width calculation; |
| 40 | // colored holds the text to render (may contain ANSI codes). |
| 41 | func (tw *TableWriter) AddRow(plain, colored []string) { |
| 42 | tw.rows = append(tw.rows, tableRow{plain: plain, colored: colored}) |
| 43 | } |
| 44 | |
| 45 | // Flush computes column widths and writes all rows to w. |
| 46 | func (tw *TableWriter) Flush(w io.Writer) { |
no outgoing calls