WithData returns a new TablePrinter with specific Data.
(data [][]string)
| 100 | |
| 101 | // WithData returns a new TablePrinter with specific Data. |
| 102 | func (p TablePrinter) WithData(data [][]string) *TablePrinter { |
| 103 | p.Data = data |
| 104 | return &p |
| 105 | } |
| 106 | |
| 107 | // WithCSVReader returns a new TablePrinter with specified Data extracted from CSV. |
| 108 | func (p TablePrinter) WithCSVReader(reader *csv.Reader) *TablePrinter { |
no outgoing calls