(rows [][]string)
| 258 | } |
| 259 | |
| 260 | func humanTableColumnWidths(rows [][]string) []int { |
| 261 | var widths []int |
| 262 | for _, row := range rows { |
| 263 | for column, cell := range row { |
| 264 | if column == len(widths) { |
| 265 | widths = append(widths, 0) |
| 266 | } |
| 267 | widths[column] = max(widths[column], humanTableCellWidth(cell)) |
| 268 | } |
| 269 | } |
| 270 | return widths |
| 271 | } |
| 272 | |
| 273 | func writeHumanTableRow(builder *strings.Builder, row []string, widths []int) { |
| 274 | for column, cell := range row { |
no test coverage detected