Versions in this module Expand all Collapse all v1 v1.0.0 Jul 3, 2026 Changes in this version + func SetDefault(v *Validator) + func Validate(s any) error + type Errors map[string][]string + func (e Errors) Add(field, msg string) + func (e Errors) Any() bool + func (e Errors) Error() string + type RuleFunc func(value any, param string) string + type Rules map[string]string + type Validator struct + func Default() *Validator + func New() *Validator + func (v *Validator) Register(name string, fn RuleFunc) + func (v *Validator) SetMessage(rule, template string) + func (v *Validator) Validate(s any) error + func (v *Validator) ValidateMap(data map[string]any, rules Rules) Errors