String renders the keybinding as a human-readable label, joining alternates with " or " for use in help text.
()
| 71 | // String renders the keybinding as a human-readable label, joining |
| 72 | // alternates with " or " for use in help text. |
| 73 | func (k Keybinding) String() string { |
| 74 | return strings.Join(k, " or ") |
| 75 | } |
| 76 | |
| 77 | // JSONSchema lets the schema generator describe this type as a union of a |
| 78 | // string and an array of strings instead of just an array. |
no outgoing calls