Documentation
¶
Index ¶
Constants ¶
View Source
const ( TypeString = "string" TypeNumber = "number" TypeObject = "object" TypeArray = "array" TypeBoolean = "boolean" TypeNull = "null" TypeUnknown = "unknown" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RuleContains ¶
type RuleContains string
func (RuleContains) Validate ¶
func (rule RuleContains) Validate(t string, data interface{}) error
type RuleEndsNotWith ¶
type RuleEndsNotWith string
func (RuleEndsNotWith) Validate ¶
func (rule RuleEndsNotWith) Validate(t string, data interface{}) error
type RuleEndsWith ¶
type RuleEndsWith string
func (RuleEndsWith) Validate ¶
func (rule RuleEndsWith) Validate(t string, data interface{}) error
type RuleMaxLength ¶
type RuleMaxLength int
func (RuleMaxLength) Validate ¶
func (rule RuleMaxLength) Validate(t string, data interface{}) error
type RuleMinLength ¶
type RuleMinLength int
func (RuleMinLength) Validate ¶
func (rule RuleMinLength) Validate(t string, data interface{}) error
type RuleNotContains ¶
type RuleNotContains string
func (RuleNotContains) Validate ¶
func (rule RuleNotContains) Validate(t string, data interface{}) error
type RuleStartsNotWith ¶
type RuleStartsNotWith string
func (RuleStartsNotWith) Validate ¶
func (rule RuleStartsNotWith) Validate(t string, data interface{}) error
type RuleStartsWith ¶
type RuleStartsWith string
func (RuleStartsWith) Validate ¶
func (rule RuleStartsWith) Validate(t string, data interface{}) error
Click to show internal directories.
Click to hide internal directories.