Versions in this module Expand all Collapse all v1 v1.0.0 Jan 4, 2022 Changes in this version + type Func interface + Accept func(typ reflect.Type) bool + Pass func(value reflect.Value) bool + func EnumsFunc(enums string) Func + func LengthFunc(length int) Func + func MaxFunc(max float64) Func + func MaxLengthFunc(maxLength int) Func + func MinFunc(min float64) Func + func MinLengthFunc(minLength int) Func + func RegexFunc(regex string) Func + type Item struct + E string + L int + Mn float64 + MnL int + Msg string + Mx float64 + MxL int + R string + func (i *Item) Validate(field reflect.StructField, value reflect.Value) (bool, string) + type Result struct + Items []*ResultItem + Passed bool + StructPtr interface{} + func (r *Result) Messages() string + type ResultItem struct + Field *reflect.StructField + Message string + Passed bool + type Validator struct + func New(structPtr interface{}) *Validator + func (v *Validator) Validate() *Result