Versions in this module Expand all Collapse all v1 v1.0.0 Mar 26, 2025 Changes in this version + var Types = map[reflect.Kind]string + type Rule func(v any, kind reflect.Kind) error + func Alpha() Rule + func Alphanumeric() Rule + func Between(min, max float64) Rule + func ContainsDigit() Rule + func ContainsLower() Rule + func ContainsSpecial() Rule + func ContainsUpper() Rule + func Date() Rule + func DateTime() Rule + func Email() Rule + func EndsWith(suffix string) Rule + func ExactLen(n int) Rule + func GreaterThan(n float64) Rule + func IP() Rule + func IPv4() Rule + func IPv6() Rule + func LessThan(n float64) Rule + func MaxLen(n int) Rule + func MaxValue(n float64) Rule + func MinLen(n int) Rule + func MinValue(n float64) Rule + func Numeric() Rule + func RegexMatch(pattern string) Rule + func Required() Rule + func Rules(rules ...Rule) []Rule + func StartsWith(prefix string) Rule + func Time() Rule + func URL() Rule + func UUID() Rule + type Schema map[string][]Rule + func (s Schema) Validate(v any) error