(value string, width int)
| 154 | } |
| 155 | |
| 156 | func padDisplayWidth(value string, width int) string { |
| 157 | pad := width - displayWidth(value) |
| 158 | if pad <= 0 { |
| 159 | return value |
| 160 | } |
| 161 | return value + spaces(pad) |
| 162 | } |
| 163 | |
| 164 | func spaces(n int) string { |
| 165 | if n <= 0 { |
no test coverage detected