Documentation ¶
Index ¶
- func FailfastValidate(validator *validator, data map[string]interface{}, rules []string, ...) string
- func FailfastValidateByStruct(validator *validator, arg0 interface{}, rules []string, autoPanic ...bool) string
- func NewValidator() *validator
- func Validate(validator *validator, data map[string]interface{}, rules []string, ...) map[string]string
- func ValidateByStruct(validator *validator, arg0 interface{}, rules []string, autoPanic ...bool) map[string]string
- type RuleChecker
- type ValidateException
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FailfastValidate ¶
func NewValidator ¶
func NewValidator() *validator
Types ¶
type RuleChecker ¶
type ValidateException ¶
type ValidateException struct {
// contains filtered or unexported fields
}
func NewValidateExceptionWithErrorTips ¶
func NewValidateExceptionWithErrorTips(errorTips string) ValidateException
func NewValidateExceptionWithErrors ¶
func NewValidateExceptionWithErrors(errors map[string]string) ValidateException
func (ValidateException) Error ¶
func (ex ValidateException) Error() string
func (ValidateException) GetErrors ¶
func (ex ValidateException) GetErrors() map[string]string
func (ValidateException) IsFailfast ¶
func (ex ValidateException) IsFailfast() bool
Click to show internal directories.
Click to hide internal directories.