()
| 7 | var commandAbbrReplacer = strings.NewReplacer("[", "", "]", "") |
| 8 | |
| 9 | func (s commandName) String() string { |
| 10 | return commandAbbrReplacer.Replace(string(s)) |
| 11 | } |
| 12 | |
| 13 | func (s commandName) matches(t string) bool { |
| 14 | prefix, rest, _ := strings.Cut(string(s), "[") |
no outgoing calls