Documentation ¶
Index ¶
- func Contains(_ context.Context, field interface{}, param interface{}) bool
- func ContainsAny(_ context.Context, field interface{}, param interface{}) bool
- func ContainsRune(_ context.Context, field interface{}, param interface{}) bool
- func Excludes(_ context.Context, field interface{}, param interface{}) bool
- func ExcludesAll(_ context.Context, field interface{}, param interface{}) bool
- func ExcludesRune(_ context.Context, field interface{}, param interface{}) bool
- func HasLengthOf(_ context.Context, field interface{}, param interface{}) bool
- func HasMaxOf(_ context.Context, field interface{}, param interface{}) bool
- func HasMinOf(_ context.Context, field interface{}, param interface{}) bool
- func HasMultiByteCharacter(_ context.Context, field interface{}, _ interface{}) bool
- func IsASCII(_ context.Context, field interface{}, _ interface{}) bool
- func IsAlpha(_ context.Context, field interface{}, param interface{}) bool
- func IsAlphanum(_ context.Context, field interface{}, _ interface{}) bool
- func IsBase64(_ context.Context, field interface{}, _ interface{}) bool
- func IsCIDR(_ context.Context, field interface{}, _ interface{}) bool
- func IsCIDRv4(_ context.Context, field interface{}, _ interface{}) bool
- func IsCIDRv6(_ context.Context, field interface{}, _ interface{}) bool
- func IsChinese(_ context.Context, field interface{}, param interface{}) bool
- func IsDataURI(_ context.Context, field interface{}, _ interface{}) bool
- func IsEmail(_ context.Context, field interface{}, _ interface{}) bool
- func IsEq(_ context.Context, field interface{}, param interface{}) bool
- func IsGt(_ context.Context, field interface{}, param interface{}) bool
- func IsGte(_ context.Context, field interface{}, param interface{}) bool
- func IsHEXColor(_ context.Context, field interface{}, _ interface{}) bool
- func IsHSL(_ context.Context, field interface{}, _ interface{}) bool
- func IsHSLA(_ context.Context, field interface{}, _ interface{}) bool
- func IsHexadecimal(_ context.Context, field interface{}, _ interface{}) bool
- func IsIP(_ context.Context, field interface{}, _ interface{}) bool
- func IsIP4AddrResolvable(_ context.Context, field interface{}, _ interface{}) bool
- func IsIP6AddrResolvable(_ context.Context, field interface{}, _ interface{}) bool
- func IsIPAddrResolvable(_ context.Context, field interface{}, _ interface{}) bool
- func IsIPv4(_ context.Context, field interface{}, _ interface{}) bool
- func IsIPv6(_ context.Context, field interface{}, _ interface{}) bool
- func IsISBN(ctx context.Context, field interface{}, param interface{}) bool
- func IsISBN10(_ context.Context, field interface{}, _ interface{}) bool
- func IsISBN13(_ context.Context, field interface{}, _ interface{}) bool
- func IsLatitude(_ context.Context, field interface{}, _ interface{}) bool
- func IsLongitude(_ context.Context, field interface{}, _ interface{}) bool
- func IsLt(_ context.Context, field interface{}, param interface{}) bool
- func IsLte(_ context.Context, field interface{}, param interface{}) bool
- func IsMAC(_ context.Context, field interface{}, _ interface{}) bool
- func IsNe(ctx context.Context, field interface{}, param interface{}) bool
- func IsNickName(_ context.Context, field interface{}, param interface{}) bool
- func IsNumber(_ context.Context, field interface{}, param interface{}) bool
- func IsNumeric(_ context.Context, field interface{}, param interface{}) bool
- func IsPrintableASCII(_ context.Context, field interface{}, _ interface{}) bool
- func IsRGB(_ context.Context, field interface{}, _ interface{}) bool
- func IsRGBA(_ context.Context, field interface{}, _ interface{}) bool
- func IsSSN(_ context.Context, field interface{}, _ interface{}) bool
- func IsTCP4AddrResolvable(ctx context.Context, field interface{}, _ interface{}) bool
- func IsTCP6AddrResolvable(_ context.Context, field interface{}, _ interface{}) bool
- func IsTCPAddrResolvable(_ context.Context, field interface{}, _ interface{}) bool
- func IsUDP4AddrResolvable(_ context.Context, field interface{}, _ interface{}) bool
- func IsUDP6AddrResolvable(_ context.Context, field interface{}, _ interface{}) bool
- func IsUDPAddrResolvable(_ context.Context, field interface{}, _ interface{}) bool
- func IsURI(_ context.Context, field interface{}, _ interface{}) bool
- func IsURL(_ context.Context, field interface{}, _ interface{}) bool
- func IsUUID(_ context.Context, field interface{}, _ interface{}) bool
- func IsUUID3(_ context.Context, field interface{}, _ interface{}) bool
- func IsUUID4(_ context.Context, field interface{}, _ interface{}) bool
- func IsUUID5(_ context.Context, field interface{}, _ interface{}) bool
- func IsUnixAddrResolvable(_ context.Context, field interface{}, _ interface{}) bool
- func RegisterValidation(key string, fn validator.Func) error
- type Func
- type Validate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Contains ¶
Contains is the validation function for validating that the field's value contains the text specified within the param.
func ContainsAny ¶
ContainsAny is the validation function for validating that the field's value contains any of the characters specified within the param.
func ContainsRune ¶
ContainsRune is the validation function for validating that the field's value contains the rune specified within the param.
func Excludes ¶
Excludes is the validation function for validating that the field's value does not contain the text specified within the param.
func ExcludesAll ¶
ExcludesAll is the validation function for validating that the field's value does not contain any of the characters specified within the param.
func ExcludesRune ¶
ExcludesRune is the validation function for validating that the field's value does not contain the rune specified within the param.
func HasLengthOf ¶
HasLengthOf is the validation function for validating if the current field's value is equal to the param's value.
func HasMaxOf ¶
HasMaxOf is the validation function for validating if the current field's value is less than or equal to the param's value.
func HasMinOf ¶
HasMinOf is the validation function for validating if the current field's value is greater than or equal to the param's value.
func HasMultiByteCharacter ¶
HasMultiByteCharacter is the validation function for validating if the field's value has a multi byte character.
func IsASCII ¶
IsASCII is the validation function for validating if the field's value is a valid ASCII character.
func IsAlpha ¶
IsAlpha is the validation function for validating if the current field's value is a valid alpha value.
func IsAlphanum ¶
IsAlphanum is the validation function for validating if the current field's value is a valid alphanumeric value.
func IsBase64 ¶
IsBase64 is the validation function for validating if the current field's value is a valid base 64.
func IsCIDR ¶
IsCIDR is the validation function for validating if the field's value is a valid v4 or v6 CIDR address.
func IsCIDRv4 ¶
IsCIDRv4 is the validation function for validating if the field's value is a valid v4 CIDR address.
func IsCIDRv6 ¶
IsCIDRv6 is the validation function for validating if the field's value is a valid v6 CIDR address.
func IsDataURI ¶
IsDataURI is the validation function for validating if the field's value is a valid data URI.
func IsEmail ¶
IsEmail is the validation function for validating if the current field's value is a valid email address.
func IsEq ¶
IsEq is the validation function for validating if the current field's value is equal to the param's value.
func IsGt ¶
IsGt is the validation function for validating if the current field's value is greater than the param's value.
func IsGte ¶
IsGte is the validation function for validating if the current field's value is greater than or equal to the param's value.
func IsHEXColor ¶
IsHEXColor is the validation function for validating if the current field's value is a valid HEX color.
func IsHSL ¶
IsHSL is the validation function for validating if the current field's value is a valid HSL color.
func IsHSLA ¶
IsHSLA is the validation function for validating if the current field's value is a valid HSLA color.
func IsHexadecimal ¶
IsNumber is the validation function for validating if the current field's value is a valid number.
func IsIP ¶
IsIP is the validation function for validating if the field's value is a valid v4 or v6 IP address.
func IsIP4AddrResolvable ¶
IsIP4AddrResolvable is the validation function for validating if the field's value is a resolvable ip4 address.
func IsIP6AddrResolvable ¶
IsIP6AddrResolvable is the validation function for validating if the field's value is a resolvable ip6 address.
func IsIPAddrResolvable ¶
IsIPAddrResolvable is the validation function for validating if the field's value is a resolvable ip address.
func IsIPv6 ¶
IsIPv6 is the validation function for validating if the field's value is a valid v6 IP address.
func IsISBN ¶
IsISBN is the validation function for validating if the field's value is a valid v10 or v13 ISBN.
func IsISBN10 ¶
IsISBN10 is the validation function for validating if the field's value is a valid v10 ISBN.
func IsISBN13 ¶
IsISBN13 is the validation function for validating if the field's value is a valid v13 ISBN.
func IsLatitude ¶
IsLatitude is the validation function for validating if the field's value is a valid latitude coordinate.
func IsLongitude ¶
IsLongitude is the validation function for validating if the field's value is a valid longitude coordinate.
func IsLt ¶
IsLt is the validation function for validating if the current field's value is less than the param's value.
func IsLte ¶
IsLte is the validation function for validating if the current field's value is less than or equal to the param's value.
func IsMAC ¶
IsMAC is the validation function for validating if the field's value is a valid MAC address.
func IsNe ¶
IsGt is the validation function for validating if the current field's value is greater than the param's value.
func IsNickName ¶
func IsNumber ¶
IsNumber is the validation function for validating if the current field's value is a valid number.
func IsNumeric ¶
IsNumeric is the validation function for validating if the current field's value is a valid numeric value.
func IsPrintableASCII ¶
IsPrintableASCII is the validation function for validating if the field's value is a valid printable ASCII character.
func IsRGB ¶
IsRGB is the validation function for validating if the current field's value is a valid RGB color.
func IsRGBA ¶
IsRGBA is the validation function for validating if the current field's value is a valid RGBA color.
func IsTCP4AddrResolvable ¶
IsTCP4AddrResolvable is the validation function for validating if the field's value is a resolvable tcp4 address.
func IsTCP6AddrResolvable ¶
IsTCP6AddrResolvable is the validation function for validating if the field's value is a resolvable tcp6 address.
func IsTCPAddrResolvable ¶
IsTCPAddrResolvable is the validation function for validating if the field's value is a resolvable tcp address.
func IsUDP4AddrResolvable ¶
IsUDP4AddrResolvable is the validation function for validating if the field's value is a resolvable udp4 address.
func IsUDP6AddrResolvable ¶
IsUDP6AddrResolvable is the validation function for validating if the field's value is a resolvable udp6 address.
func IsUDPAddrResolvable ¶
IsUDPAddrResolvable is the validation function for validating if the field's value is a resolvable udp address.
func IsURI ¶
IsURI is the validation function for validating if the current field's value is a valid URI.
func IsURL ¶
IsURL is the validation function for validating if the current field's value is a valid URL.
func IsUUID ¶
IsUUID is the validation function for validating if the field's value is a valid UUID of any version.
func IsUUID3 ¶
IsUUID3 is the validation function for validating if the field's value is a valid v3 UUID.
func IsUUID4 ¶
IsUUID4 is the validation function for validating if the field's value is a valid v4 UUID.
func IsUUID5 ¶
IsUUID5 is the validation function for validating if the field's value is a valid v5 UUID.
func IsUnixAddrResolvable ¶
IsUnixAddrResolvable is the validation function for validating if the field's value is a resolvable unix address.