Documentation ¶
Index ¶
- func Validate(s any, message map[string]string) (bool, map[string]string)
- func ValidateMap(data map[string]any, rules map[string]any, message map[string]string) (bool, map[string]string)
- func ValidateMapReturnOneError(data map[string]any, rules map[string]any, message map[string]string) (bool, string)
- func ValidateTime(t types.Time) (bool, string)
- func Var(data string, rule string) (bool, error)
- func VerifyReturnOneError(s any, message map[string]string) (bool, string)
- func WithValidations(v validate.Validation)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateMap ¶
func ValidateMap(data map[string]any, rules map[string]any, message map[string]string) (bool, map[string]string)
ValidateMap map 验证器
func ValidateMapReturnOneError ¶
func ValidateMapReturnOneError(data map[string]any, rules map[string]any, message map[string]string) (bool, string)
ValidateMapReturnOneError map 验证器
func VerifyReturnOneError ¶
VerifyReturnOneError 返回验证器验证结果错误消息 和 bool (是否验证成功)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.