rpad adds padding to the right of a string.
(s string, padding int)
| 213 | |
| 214 | // rpad adds padding to the right of a string. |
| 215 | func rpad(s string, padding int) string { |
| 216 | template := fmt.Sprintf("%%-%ds ", padding) |
| 217 | return fmt.Sprintf(template, s) |
| 218 | } |