Documentation
¶
Index ¶
- func Alpha(name string, value string) (stop bool, err error)
- func Alphanumeric(name string, value string) (stop bool, err error)
- func Base64(name string, value string) (stop bool, err error)
- func Base64Raw(name string, value string) (stop bool, err error)
- func Base64RawURL(name string, value string) (stop bool, err error)
- func Base64URL(name string, value string) (stop bool, err error)
- func Between(min, max int) yav.ValidateFunc[string]
- func ContainsAlpha(name string, value string) (stop bool, err error)
- func ContainsDigit(name string, value string) (stop bool, err error)
- func ContainsLowerAlpha(name string, value string) (stop bool, err error)
- func ContainsSpecialCharacter(name string, value string) (stop bool, err error)
- func ContainsUpperAlpha(name string, value string) (stop bool, err error)
- func E164(name string, value string) (stop bool, err error)
- func Email(name string, value string) (stop bool, err error)
- func EndsWithAlpha(name string, value string) (stop bool, err error)
- func EndsWithDigit(name string, value string) (stop bool, err error)
- func EndsWithLowerAlpha(name string, value string) (stop bool, err error)
- func EndsWithSpecialCharacter(name string, value string) (stop bool, err error)
- func EndsWithUpperAlpha(name string, value string) (stop bool, err error)
- func Equal(parameter string) yav.ValidateFunc[string]
- func ExcludedIf(conditionString string, condition bool) yav.ValidateFunc[string]
- func ExcludedUnless(conditionString string, condition bool) yav.ValidateFunc[string]
- func ExcludedWithAll() accumulators.ExcludedWithAll[string]
- func ExcludedWithAny() accumulators.ExcludedWithAny[string]
- func ExcludedWithoutAll() accumulators.ExcludedWithoutAll[string]
- func ExcludedWithoutAny() accumulators.ExcludedWithoutAny[string]
- func ExcludesWhitespace(name string, value string) (stop bool, err error)
- func FQDN(name string, value string) (stop bool, err error)
- func Hostname(name string, value string) (stop bool, err error)
- func HostnamePort(name string, value string) (stop bool, err error)
- func HostnameRFC1123(name string, value string) (stop bool, err error)
- func Lowercase(name string, value string) (stop bool, err error)
- func Max(parameter int) yav.ValidateFunc[string]
- func Min(parameter int) yav.ValidateFunc[string]
- func NotEqual(parameter string) yav.ValidateFunc[string]
- func Numeric(name string, value string) (stop bool, err error)
- func OmitEmpty(_ string, value string) (stop bool, err error)
- func OneOf(parameters ...string) yav.ValidateFunc[string]
- func Regexp(re *regexp.Regexp) yav.ValidateFunc[string]
- func Required(name string, value string) (stop bool, err error)
- func RequiredIf(conditionString string, condition bool) yav.ValidateFunc[string]
- func RequiredUnless(conditionString string, condition bool) yav.ValidateFunc[string]
- func RequiredWithAll() accumulators.RequiredWithAll[string]
- func RequiredWithAny() accumulators.RequiredWithAny[string]
- func RequiredWithoutAll() accumulators.RequiredWithoutAll[string]
- func RequiredWithoutAny() accumulators.RequiredWithoutAny[string]
- func StartsWithAlpha(name string, value string) (stop bool, err error)
- func StartsWithDigit(name string, value string) (stop bool, err error)
- func StartsWithLowerAlpha(name string, value string) (stop bool, err error)
- func StartsWithSpecialCharacter(name string, value string) (stop bool, err error)
- func StartsWithUpperAlpha(name string, value string) (stop bool, err error)
- func Text(name string, value string) (stop bool, err error)
- func Title(name string, value string) (stop bool, err error)
- func URI(name string, value string) (stop bool, err error)
- func URL(name string, value string) (stop bool, err error)
- func UUID(name string, value string) (stop bool, err error)
- func Uppercase(name string, value string) (stop bool, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Alphanumeric ¶ added in v0.3.0
func Base64RawURL ¶ added in v0.14.1
func ExcludedIf ¶ added in v0.9.4
func ExcludedIf(conditionString string, condition bool) yav.ValidateFunc[string]
func ExcludedUnless ¶ added in v0.9.4
func ExcludedUnless(conditionString string, condition bool) yav.ValidateFunc[string]
func ExcludedWithAll ¶ added in v0.9.4
func ExcludedWithAll() accumulators.ExcludedWithAll[string]
func ExcludedWithAny ¶ added in v0.9.4
func ExcludedWithAny() accumulators.ExcludedWithAny[string]
func ExcludedWithoutAll ¶ added in v0.9.4
func ExcludedWithoutAll() accumulators.ExcludedWithoutAll[string]
func ExcludedWithoutAny ¶ added in v0.9.4
func ExcludedWithoutAny() accumulators.ExcludedWithoutAny[string]
func HostnamePort ¶ added in v0.3.0
func HostnameRFC1123 ¶ added in v0.3.0
func Regexp ¶ added in v0.9.0
func Regexp(re *regexp.Regexp) yav.ValidateFunc[string]
Regexp validates string value using regexp.Regexp.MatchString. That means the value must contain any match of the regular expression re. Wrap your expression with ^...$ to test the value for a full match.
func RequiredIf ¶ added in v0.9.0
func RequiredIf(conditionString string, condition bool) yav.ValidateFunc[string]
func RequiredUnless ¶ added in v0.9.0
func RequiredUnless(conditionString string, condition bool) yav.ValidateFunc[string]
func RequiredWithAll ¶
func RequiredWithAll() accumulators.RequiredWithAll[string]
func RequiredWithAny ¶
func RequiredWithAny() accumulators.RequiredWithAny[string]
func RequiredWithoutAll ¶
func RequiredWithoutAll() accumulators.RequiredWithoutAll[string]
func RequiredWithoutAny ¶
func RequiredWithoutAny() accumulators.RequiredWithoutAny[string]
func StartsWithLowerAlpha ¶
func StartsWithUpperAlpha ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.