Versions in this module Expand all Collapse all v1 v1.15.0 Mar 2, 2023 Changes in this version + type Between struct + func (r *Between) Config() map[string]interface{} + func (r *Between) ErrorMessage(fieldName string) string + func (r *Between) IsValid(value interface{}) bool + func (r *Between) Type() *RuleType + type IsDate struct + func (r *IsDate) Config() map[string]interface{} + func (r *IsDate) ErrorMessage(fieldName string) string + func (r *IsDate) IsValid(value interface{}) bool + func (r *IsDate) Type() *RuleType + type IsEmail struct + func (r *IsEmail) Config() map[string]interface{} + func (r *IsEmail) ErrorMessage(fieldName string) string + func (r *IsEmail) IsValid(value interface{}) bool + func (r *IsEmail) Type() *RuleType + type IsMobile struct + func (r *IsMobile) Config() map[string]interface{} + func (r *IsMobile) ErrorMessage(fieldName string) string + func (r *IsMobile) IsValid(value interface{}) bool + func (r *IsMobile) Type() *RuleType + type IsNumber struct + func (r *IsNumber) Config() map[string]interface{} + func (r *IsNumber) ErrorMessage(fieldName string) string + func (r *IsNumber) IsValid(value interface{}) bool + func (r *IsNumber) Type() *RuleType + type IsString struct + func (r *IsString) Config() map[string]interface{} + func (r *IsString) ErrorMessage(fieldName string) string + func (r *IsString) IsValid(value interface{}) bool + func (r *IsString) Type() *RuleType + type Length struct + func (r *Length) Config() map[string]interface{} + func (r *Length) ErrorMessage(fieldName string) string + func (r *Length) IsValid(value interface{}) bool + func (r *Length) Type() *RuleType + type Matches struct + func (r *Matches) Config() map[string]interface{} + func (r *Matches) ErrorMessage(fieldName string) string + func (r *Matches) IsValid(value interface{}) bool + func (r *Matches) Type() *RuleType + type Required struct + func (r *Required) Config() map[string]interface{} + func (r *Required) ErrorMessage(fieldName string) string + func (r *Required) IsValid(value interface{}) bool + func (r *Required) Type() *RuleType + type Rule interface + Config func() map[string]interface{} + ErrorMessage func(fieldName string) string + IsValid func(value interface{}) bool + Type func() *RuleType + func NewBetween(min uint32, max uint32) (Rule, error) + func NewIsDate() (Rule, error) + func NewIsEmail() (Rule, error) + func NewIsMobile() (Rule, error) + func NewIsNumber() (Rule, error) + func NewIsString() (Rule, error) + func NewLength(min uint32, max uint32) (Rule, error) + func NewMatches(options []interface{}) (Rule, error) + func NewRequired() (Rule, error) + type RuleType struct + var TypeBetween *RuleType = &RuleType{ ... } + var TypeIsDate *RuleType = &RuleType{ ... } + var TypeIsEmail *RuleType = &RuleType{ ... } + var TypeIsMobile *RuleType = &RuleType{ ... } + var TypeIsNumber *RuleType = &RuleType{ ... } + var TypeIsString *RuleType = &RuleType{ ... } + var TypeLength *RuleType = &RuleType{ ... } + var TypeMatches *RuleType = &RuleType{ ... } + var TypeRequired *RuleType = &RuleType{ ... } + func NewRuleType(name string) (*RuleType, error) + func (rt *RuleType) IsZero() bool + func (rt *RuleType) Name() string + func (rt *RuleType) String() string