| 26 | } |
| 27 | |
| 28 | type Struct struct { |
| 29 | Foo *Enum `validate:"validateFn"` // uses Validate() error by default |
| 30 | Bar Enum `validate:"validateFn=IsAEnum"` // uses IsAEnum() bool provided by enumer |
| 31 | } |
| 32 | |
| 33 | func main() { |
| 34 | validate := validator.New() |
nothing calls this directly
no outgoing calls
no test coverage detected