Documentation ¶
Index ¶
- func CheckDate(str string) bool
- func CheckDatetime(str string) bool
- func CheckDevices(device string) bool
- func CheckDomainArray(arr []string) bool
- func CheckDomainString(str string) bool
- func CheckIMei(iMei string) bool
- func CheckIdfa(idfa string) bool
- func CheckIp(ip string) bool
- func CheckMd516(md string) bool
- func CheckMd516Or32(md string) bool
- func CheckMd532(md string) bool
- func CheckStrLengthInGBK(str string, minLen, maxLen int) bool
- func CheckStringLength(str string, minLen, maxLen int) bool
- func GetTranslator() ut.Translator
- func GetValidator() *v.Validate
- func MustRegisterIntValidation(tag string, f func(int64) bool, callValidationEvenIfNull ...bool)
- func MustRegisterStringValidation(tag string, f func(string) bool, callValidationEvenIfNull ...bool)
- func TranslateValidateError(err error) error
- func ValidateStruct(input interface{}) error
- type ValidateErrorWithTranslation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckStrLengthInGBK ¶
CheckStrLengthInGBK .
func CheckStringLength ¶
CheckStringLength .
func GetTranslator ¶
func GetTranslator() ut.Translator
func GetValidator ¶
func TranslateValidateError ¶
func ValidateStruct ¶
func ValidateStruct(input interface{}) error
Types ¶
type ValidateErrorWithTranslation ¶
type ValidateErrorWithTranslation struct {
v.ValidationErrorsTranslations
}
func AsValidateError ¶
func AsValidateError(err error) *ValidateErrorWithTranslation
func (ValidateErrorWithTranslation) Error ¶
func (e ValidateErrorWithTranslation) Error() string
Click to show internal directories.
Click to hide internal directories.