(str string, colKey int)
| 59 | } |
| 60 | |
| 61 | func (t *Table) parseDimension(str string, colKey int) { |
| 62 | maxWidth := 0 |
| 63 | w := displayWidth(str) + indent |
| 64 | if w > maxWidth { |
| 65 | maxWidth = w |
| 66 | } |
| 67 | |
| 68 | // Store the new known maximum width. |
| 69 | v, ok := t.maxWidth[colKey] |
| 70 | if !ok || v < maxWidth || v == 0 { |
| 71 | t.maxWidth[colKey] = maxWidth |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | // AppendBulk uses for Bulk Append |
| 76 | func (t *Table) AppendBulk(rows [][]string) { |
no test coverage detected