(value string)
| 130 | } |
| 131 | |
| 132 | func (e *enumValue) Set(value string) error { |
| 133 | if !isIncluded(value, e.options) { |
| 134 | return fmt.Errorf("valid values are %s", formatValuesForUsageDocs(e.options)) |
| 135 | } |
| 136 | *e.string = value |
| 137 | return nil |
| 138 | } |
| 139 | |
| 140 | func (e *enumValue) String() string { |
| 141 | return *e.string |
nothing calls this directly
no test coverage detected