trim is a helper to remove trailing whitespace from a string.
(s string)
| 335 | |
| 336 | // trim is a helper to remove trailing whitespace from a string. |
| 337 | func trim(s string) string { |
| 338 | return strings.TrimRight(s, " \t") |
| 339 | } |
| 340 | |
| 341 | // visibleSize returns the number of columns the string will cover |
| 342 | // when displayed in the terminal. This is the number of runes, |
no outgoing calls
no test coverage detected