Documentation ¶ Index ¶ type NameRegexp type ValidationError type Validator func New(log *logger.Log) *Validator func (v *Validator) Validate(s any) (errs []*ValidationError) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type NameRegexp ¶ type NameRegexp interface { GetName() string GetNameRegExp() *regexp.Regexp IsNameValid() bool } type ValidationError ¶ type ValidationError struct { Field string `json:"field"` Tag string `json:"tag"` Type string `json:"type"` Value any `json:"value"` Expected string `json:"expected,omitempty"` } type Validator ¶ type Validator struct { // contains filtered or unexported fields } func New ¶ func New(log *logger.Log) *Validator func (*Validator) Validate ¶ func (v *Validator) Validate(s any) (errs []*ValidationError) Source Files ¶ View all Source files validator.go Click to show internal directories. Click to hide internal directories.