Versions in this module Expand all Collapse all v0 v0.1.1 Mar 1, 2021 v0.1.0 Mar 1, 2021 Changes in this version + func DeleteRule(rule string) + func RegisterRule(rule string, f RuleFunc) error + type CustomMsg = map[string]interface + type Error struct + func Check(value interface{}, rules string, messages interface{}, params ...interface{}) *Error + func CheckMap(params interface{}, rules interface{}, messages ...CustomMsg) *Error + func CheckStruct(object interface{}, rules interface{}, messages ...CustomMsg) *Error + func (e *Error) Current() error + func (e *Error) Error() string + func (e *Error) FirstItem() (key string, messages map[string]string) + func (e *Error) FirstRule() (rule string, err string) + func (e *Error) FirstString() (err string) + func (e *Error) Map() map[string]string + func (e *Error) Maps() ErrorMap + func (e *Error) String() string + func (e *Error) Strings() (errs []string) + type ErrorMap map[string]map[string]string + type RuleFunc func(rule string, value interface{}, message string, params map[string]interface{}) error + type Validator struct + func New() *Validator + func (v *Validator) Check(value interface{}, rules string, messages interface{}, params ...interface{}) *Error + func (v *Validator) CheckMap(params interface{}, rules interface{}, messages ...CustomMsg) *Error + func (v *Validator) CheckStruct(object interface{}, rules interface{}, messages ...CustomMsg) *Error + func (v *Validator) Clone() *Validator + func (v *Validator) I18n(language string) *Validator