Versions in this module Expand all Collapse all v0 v0.0.1 Jan 30, 2026 Changes in this version + const TypeArray + const TypeBoolean + const TypeNull + const TypeNumber + const TypeObject + const TypeString + const TypeUnknown + type RuleContains string + func (rule RuleContains) Validate(t string, data interface{}) error + type RuleEndsNotWith string + func (rule RuleEndsNotWith) Validate(t string, data interface{}) error + type RuleEndsWith string + func (rule RuleEndsWith) Validate(t string, data interface{}) error + type RuleEnums []string + func (rule RuleEnums) Validate(t string, data interface{}) error + type RuleIp bool + func (rule RuleIp) Validate(t string, data interface{}) error + type RuleIpv4 bool + func (rule RuleIpv4) Validate(t string, data interface{}) error + type RuleIpv6 bool + func (rule RuleIpv6) Validate(t string, data interface{}) error + type RuleMatch string + func (rule RuleMatch) Validate(t string, data interface{}) error + type RuleMax int64 + func (rule RuleMax) Validate(t string, data interface{}) error + type RuleMaxLength int + func (rule RuleMaxLength) Validate(t string, data interface{}) error + type RuleMin int64 + func (rule RuleMin) Validate(t string, data interface{}) error + type RuleMinLength int + func (rule RuleMinLength) Validate(t string, data interface{}) error + type RuleNotContains string + func (rule RuleNotContains) Validate(t string, data interface{}) error + type RuleStartsNotWith string + func (rule RuleStartsNotWith) Validate(t string, data interface{}) error + type RuleStartsWith string + func (rule RuleStartsWith) Validate(t string, data interface{}) error + type RuleUrl bool + func (rule RuleUrl) Validate(t string, data interface{}) error + type Validator interface + Validate func(string, interface{}) error + func NewValidator(name string, value string) (Validator, error)