SelectiveStringValue implements the flag.Value interface.
| 23 | |
| 24 | // SelectiveStringValue implements the flag.Value interface. |
| 25 | type SelectiveStringValue struct { |
| 26 | v string |
| 27 | valids map[string]struct{} |
| 28 | } |
| 29 | |
| 30 | // Set verifies the argument to be a valid member of the allowed values |
| 31 | // before setting the underlying flag value. |
nothing calls this directly
no outgoing calls
no test coverage detected