Versions in this module Expand all Collapse all v1 v1.1.2 Mar 20, 2024 Changes in this version + func Register(rule Rule) + type Rule interface + Message func() string + Name func() string + Run func(in RunInput) error + func GetRule(name string) Rule + type RuleAfter struct + func (r RuleAfter) Message() string + func (r RuleAfter) Name() string + func (r RuleAfter) Run(in RunInput) error + type RuleAfterEqual struct + func (r RuleAfterEqual) Message() string + func (r RuleAfterEqual) Name() string + func (r RuleAfterEqual) Run(in RunInput) error + type RuleArray struct + func (r RuleArray) Message() string + func (r RuleArray) Name() string + func (r RuleArray) Run(in RunInput) error + type RuleBail struct + func (r RuleBail) Message() string + func (r RuleBail) Name() string + func (r RuleBail) Run(in RunInput) error + type RuleBankCard struct + func (r RuleBankCard) Message() string + func (r RuleBankCard) Name() string + func (r RuleBankCard) Run(in RunInput) error + type RuleBefore struct + func (r RuleBefore) Message() string + func (r RuleBefore) Name() string + func (r RuleBefore) Run(in RunInput) error + type RuleBeforeEqual struct + func (r RuleBeforeEqual) Message() string + func (r RuleBeforeEqual) Name() string + func (r RuleBeforeEqual) Run(in RunInput) error + type RuleBetween struct + func (r RuleBetween) Message() string + func (r RuleBetween) Name() string + func (r RuleBetween) Run(in RunInput) error + type RuleBoolean struct + func (r RuleBoolean) Message() string + func (r RuleBoolean) Name() string + func (r RuleBoolean) Run(in RunInput) error + type RuleCi struct + func (r RuleCi) Message() string + func (r RuleCi) Name() string + func (r RuleCi) Run(in RunInput) error + type RuleDate struct + func (r RuleDate) Message() string + func (r RuleDate) Name() string + func (r RuleDate) Run(in RunInput) error + type RuleDateFormat struct + func (r RuleDateFormat) Message() string + func (r RuleDateFormat) Name() string + func (r RuleDateFormat) Run(in RunInput) error + type RuleDatetime struct + func (r RuleDatetime) Message() string + func (r RuleDatetime) Name() string + func (r RuleDatetime) Run(in RunInput) error + type RuleDifferent struct + func (r RuleDifferent) Message() string + func (r RuleDifferent) Name() string + func (r RuleDifferent) Run(in RunInput) error + type RuleDomain struct + func (r RuleDomain) Message() string + func (r RuleDomain) Name() string + func (r RuleDomain) Run(in RunInput) error + type RuleEmail struct + func (r RuleEmail) Message() string + func (r RuleEmail) Name() string + func (r RuleEmail) Run(in RunInput) error + type RuleEnums struct + func (r RuleEnums) Message() string + func (r RuleEnums) Name() string + func (r RuleEnums) Run(in RunInput) error + type RuleEq struct + func (r RuleEq) Message() string + func (r RuleEq) Name() string + func (r RuleEq) Run(in RunInput) error + type RuleFloat struct + func (r RuleFloat) Message() string + func (r RuleFloat) Name() string + func (r RuleFloat) Run(in RunInput) error + type RuleForeach struct + func (r RuleForeach) Message() string + func (r RuleForeach) Name() string + func (r RuleForeach) Run(in RunInput) error + type RuleGT struct + func (r RuleGT) Message() string + func (r RuleGT) Name() string + func (r RuleGT) Run(in RunInput) error + type RuleGTE struct + func (r RuleGTE) Message() string + func (r RuleGTE) Name() string + func (r RuleGTE) Run(in RunInput) error + type RuleIn struct + func (r RuleIn) Message() string + func (r RuleIn) Name() string + func (r RuleIn) Run(in RunInput) error + type RuleInteger struct + func (r RuleInteger) Message() string + func (r RuleInteger) Name() string + func (r RuleInteger) Run(in RunInput) error + type RuleIp struct + func (r RuleIp) Message() string + func (r RuleIp) Name() string + func (r RuleIp) Run(in RunInput) error + type RuleIpv4 struct + func (r RuleIpv4) Message() string + func (r RuleIpv4) Name() string + func (r RuleIpv4) Run(in RunInput) error + type RuleIpv6 struct + func (r RuleIpv6) Message() string + func (r RuleIpv6) Name() string + func (r RuleIpv6) Run(in RunInput) error + type RuleJson struct + func (r RuleJson) Message() string + func (r RuleJson) Name() string + func (r RuleJson) Run(in RunInput) error + type RuleLT struct + func (r RuleLT) Message() string + func (r RuleLT) Name() string + func (r RuleLT) Run(in RunInput) error + type RuleLTE struct + func (r RuleLTE) Message() string + func (r RuleLTE) Name() string + func (r RuleLTE) Run(in RunInput) error + type RuleLength struct + func (r RuleLength) Message() string + func (r RuleLength) Name() string + func (r RuleLength) Run(in RunInput) error + type RuleMac struct + func (r RuleMac) Message() string + func (r RuleMac) Name() string + func (r RuleMac) Run(in RunInput) error + type RuleMax struct + func (r RuleMax) Message() string + func (r RuleMax) Name() string + func (r RuleMax) Run(in RunInput) error + type RuleMaxLength struct + func (r RuleMaxLength) Message() string + func (r RuleMaxLength) Name() string + func (r RuleMaxLength) Run(in RunInput) error + type RuleMin struct + func (r RuleMin) Message() string + func (r RuleMin) Name() string + func (r RuleMin) Run(in RunInput) error + type RuleMinLength struct + func (r RuleMinLength) Message() string + func (r RuleMinLength) Name() string + func (r RuleMinLength) Run(in RunInput) error + type RuleNotEq struct + func (r RuleNotEq) Message() string + func (r RuleNotEq) Name() string + func (r RuleNotEq) Run(in RunInput) error + type RuleNotIn struct + func (r RuleNotIn) Message() string + func (r RuleNotIn) Name() string + func (r RuleNotIn) Run(in RunInput) error + type RuleNotRegex struct + func (r RuleNotRegex) Message() string + func (r RuleNotRegex) Name() string + func (r RuleNotRegex) Run(in RunInput) error + type RulePassport struct + func (r RulePassport) Message() string + func (r RulePassport) Name() string + func (r RulePassport) Run(in RunInput) error + type RulePassword struct + func (r RulePassword) Message() string + func (r RulePassword) Name() string + func (r RulePassword) Run(in RunInput) error + type RulePassword2 struct + func (r RulePassword2) Message() string + func (r RulePassword2) Name() string + func (r RulePassword2) Run(in RunInput) error + type RulePassword3 struct + func (r RulePassword3) Message() string + func (r RulePassword3) Name() string + func (r RulePassword3) Run(in RunInput) error + type RulePhone struct + func (r RulePhone) Message() string + func (r RulePhone) Name() string + func (r RulePhone) Run(in RunInput) error + type RulePhoneLoose struct + func (r RulePhoneLoose) Message() string + func (r RulePhoneLoose) Name() string + func (r RulePhoneLoose) Run(in RunInput) error + type RulePostcode struct + func (r RulePostcode) Message() string + func (r RulePostcode) Name() string + func (r RulePostcode) Run(in RunInput) error + type RuleQQ struct + func (r RuleQQ) Message() string + func (r RuleQQ) Name() string + func (r RuleQQ) Run(in RunInput) error + type RuleRegex struct + func (r RuleRegex) Message() string + func (r RuleRegex) Name() string + func (r RuleRegex) Run(in RunInput) error + type RuleRequired struct + func (r RuleRequired) Message() string + func (r RuleRequired) Name() string + func (r RuleRequired) Run(in RunInput) error + type RuleRequiredIf struct + func (r RuleRequiredIf) Message() string + func (r RuleRequiredIf) Name() string + func (r RuleRequiredIf) Run(in RunInput) error + type RuleRequiredUnless struct + func (r RuleRequiredUnless) Message() string + func (r RuleRequiredUnless) Name() string + func (r RuleRequiredUnless) Run(in RunInput) error + type RuleRequiredWith struct + func (r RuleRequiredWith) Message() string + func (r RuleRequiredWith) Name() string + func (r RuleRequiredWith) Run(in RunInput) error + type RuleRequiredWithAll struct + func (r RuleRequiredWithAll) Message() string + func (r RuleRequiredWithAll) Name() string + func (r RuleRequiredWithAll) Run(in RunInput) error + type RuleRequiredWithout struct + func (r RuleRequiredWithout) Message() string + func (r RuleRequiredWithout) Name() string + func (r RuleRequiredWithout) Run(in RunInput) error + type RuleRequiredWithoutAll struct + func (r RuleRequiredWithoutAll) Message() string + func (r RuleRequiredWithoutAll) Name() string + func (r RuleRequiredWithoutAll) Run(in RunInput) error + type RuleResidentId struct + func (r RuleResidentId) Message() string + func (r RuleResidentId) Name() string + func (r RuleResidentId) Run(in RunInput) error + type RuleSame struct + func (r RuleSame) Message() string + func (r RuleSame) Name() string + func (r RuleSame) Run(in RunInput) error + type RuleSize struct + func (r RuleSize) Message() string + func (r RuleSize) Name() string + func (r RuleSize) Run(in RunInput) error + type RuleTelephone struct + func (r RuleTelephone) Message() string + func (r RuleTelephone) Name() string + func (r RuleTelephone) Run(in RunInput) error + type RuleUrl struct + func (r RuleUrl) Message() string + func (r RuleUrl) Name() string + func (r RuleUrl) Run(in RunInput) error + type RunInput struct + Data *gvar.Var + Field string + Message string + Option RunOption + RuleKey string + RulePattern string + Value *gvar.Var + ValueType reflect.Type + type RunOption struct + CaseInsensitive bool