Versions in this module Expand all Collapse all v0 v0.1.0 Jan 17, 2026 Changes in this version + func Email(field, value string) error + func MaxLen(field, value string, max int) error + func MinLen(field, value string, min int) error + func Register(name string, fn ValidatorFunc) + func Required(field, value string) error + func SetHooks(next Hooks) + func Struct(value any) error + type Errors struct + Fields []FieldError + func As(err error) (*Errors, bool) + func (e *Errors) Error() string + type FieldError struct + Field string + Message string + type Hooks struct + OnError func(value any, err error) + type ValidatorFunc func(field string, value reflect.Value, param string) *FieldError