Versions in this module Expand all Collapse all v1 v1.14.6 Dec 1, 2020 v1.9.12 Dec 1, 2020 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) 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