(values []string, widths []int)
| 143 | } |
| 144 | |
| 145 | func joinColumns(values []string, widths []int) string { |
| 146 | out := "" |
| 147 | for i, value := range values { |
| 148 | out += padDisplayWidth(value, widths[i]) |
| 149 | if i != len(values)-1 { |
| 150 | out += " " |
| 151 | } |
| 152 | } |
| 153 | return out |
| 154 | } |
| 155 | |
| 156 | func padDisplayWidth(value string, width int) string { |
| 157 | pad := width - displayWidth(value) |
no test coverage detected