MCPcopy
hub / github.com/go-playground/validator / Struct

Struct Struct

_examples/validate_fn/main.go:28–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28type 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
33func main() {
34 validate := validator.New()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected