Versions in this module Expand all Collapse all v1 v1.0.5 Nov 27, 2022 Changes in this version + const ErrMsgExprName + const MatchExprName + var ErrInvalidWithoutMsg = errors.New("") + func MustRegFunc(funcName string, fn func(args ...interface{}) error, force ...bool) + func RegFunc(funcName string, fn func(args ...interface{}) error, force ...bool) error + func SetErrorFactory(errFactory func(fieldSelector, msg string) error) + func Validate(value interface{}, checkAll ...bool) error + type Error struct + FailPath string + Msg string + func (e *Error) Error() string + type Validator struct + func Default() *Validator + func New(tagName string) *Validator + func (v *Validator) SetErrorFactory(errFactory func(failPath, msg string) error) *Validator + func (v *Validator) VM() *tagexpr.VM + func (v *Validator) Validate(value interface{}, checkAll ...bool) error