Versions in this module Expand all Collapse all v0 v0.9.0 Dec 5, 2024 Changes in this version + func LanguageTag(val string) bool + func Regexp(v string) bool + func Timezone(tz string) bool v0.8.0 Apr 18, 2024 Changes in this version + func Empty(val string) bool + func FileExists(path string) bool + func FileExistsFS(fsys fs.FS) func(string) bool + func IsDir(path string) bool + func IsDirFS(fsys fs.FS) func(string) bool + func Nil[T any](v T) bool v0.7.0 Mar 17, 2024 Changes in this version + func ASCII(s string) bool + func Alpha(s string) bool + func And[T any](v ...func(T) bool) func(T) bool + func BankCard(val string) bool + func BetweenEqual[T cmp.Ordered](min, max T) func(T) bool + func Between[T cmp.Ordered](min, max T) func(T) bool + func CNMobile(val string) bool + func CNPhone(val string) bool + func CNTel(val string) bool + func Digit(val string) bool + func Email(val string) bool + func EmptyOr(v func(string) bool) func(string) bool + func EndWith(suffix string) func(string) bool + func Equal[T comparable](v T) func(T) bool + func GB11643(val string) bool + func GB32100(val string) bool + func GreatEqual[T cmp.Ordered](num T) func(T) bool + func Great[T cmp.Ordered](num T) func(T) bool + func HTTPStatus(s int) bool + func Hex(val string) bool + func HexColor(val string) bool + func IP(val string) bool + func IP4(val string) bool + func IP6(val string) bool + func ISBN(val string) bool + func ISBN10(val string) bool + func ISBN13(val string) bool + func In[T comparable](element ...T) func(T) bool + func JSON(val []byte) bool + func LessEqual[T cmp.Ordered](num T) func(T) bool + func Less[T cmp.Ordered](num T) func(T) bool + func Luhn(val string) bool + func MV[M ~map[K]V, K comparable, V any](v func(V) bool, msg web.LocaleStringer) filter.Rule[M] + func Match(exp *regexp.Regexp) func(string) bool + func NilOr[T any](v func(T) bool) func(T) bool + func NotIn[T comparable](element ...T) func(T) bool + func Not[T any](v func(T) bool) func(T) bool + func Or[T any](v ...func(T) bool) func(T) bool + func SV[S ~[]T, T any](v func(T) bool, msg web.LocaleStringer) filter.Rule[S] + func Semver(ver string) bool + func SemverCompatible(ver string) func(string) bool + func SemverGreat(ver string) func(string) bool + func SemverGreatEqual(ver string) func(string) bool + func SemverLess(ver string) func(string) bool + func SemverLessEqual(ver string) func(string) bool + func StartWith(prefix string) func(string) bool + func Strength(length, upper, lower, punct int) func(string) bool + func URL(val string) bool + func UUID(val string) bool + func V[T any](v func(T) bool, msg web.LocaleStringer) filter.Rule[T] + func ZeroOr[T comparable](v func(T) bool) func(T) bool + func Zero[T any](v T) bool