Versions in this module Expand all Collapse all v0 v0.3.0 Nov 27, 2026 Changes in this version + const Enum + const Extension + const FailsFix + const FailsRequires + const FailsWhen + const Fix + const RegisterDoes + const RegisterName + const RegisterWhen + const Requires + const TagDoes + const TagName + const TagWhen + func Apply(tag string, typ reflect.Type, t Target) (bool, error) + func Declare(c Custom) + func Format(format string) func(t Target) + func Has(tag string, name string) bool + func None(Target) + func OnDeclare(fn func(c Custom)) + func Options(tag string, typ reflect.Type) []string + func Pattern(re string) func(t Target) + func Register(tag string, apply func(t Target)) + func Untagged(t reflect.Type) []string + func Values(typ reflect.Type) ([]string, bool) + type Custom struct + Check func(value string) bool + Message string + Schema func(t Target) + Tag string + type Need struct + Field string + Rule string + func Needs(t reflect.Type, withRequired bool) []Need + func (n Need) Key() string + type Target interface + Bound func(rule string, n float64) + Enum func(values []string) + Format func(format string) + Items func() Target + Pattern func(re string)