padRight pads s with spaces to width, or returns s unchanged if it already exceeds width.
(s string, width int)
| 653 | // padRight pads s with spaces to width, or returns s unchanged if it already |
| 654 | // exceeds width. |
| 655 | func padRight(s string, width int) string { |
| 656 | if len(s) >= width { |
| 657 | return s |
| 658 | } |
| 659 | return s + strings.Repeat(" ", width-len(s)) |
| 660 | } |
| 661 | |
| 662 | // invalidEventTypesError builds a user-friendly error for one or more unknown |
| 663 | // --event-type values and points to --list-event-types for the full list. The |
no outgoing calls