String is used both by fmt.Print and by Cobra in help text
()
| 14 | |
| 15 | // String is used both by fmt.Print and by Cobra in help text |
| 16 | func (e *Language) String() string { |
| 17 | return string(*e) |
| 18 | } |
| 19 | |
| 20 | // Set must have pointer receiver so it doesn't change the value of a copy |
| 21 | func (e *Language) Set(v string) error { |
no outgoing calls