Documentation
¶
Index ¶
Constants ¶
View Source
const ( RuleRequired = "required" RuleLen = "len" RuleMax = "max" RuleMin = "min" RuleRegex = "regex" RulePhone = "phone" RuleEmail = "email" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ValidError ¶
valid type
func ValidModel ¶
func ValidModel(data interface{}, model interface{}) ValidError
ValidModel form/single json data
Click to show internal directories.
Click to hide internal directories.