Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TagMap = map[string]Func{ "required": IsRequired, "email": IsEmail, "phone": IsPhone, "label": IsLabel, "number": IsNumber, }
View Source
var (
TagName = "validate"
)
Functions ¶
func IsRequired ¶
func IsRequired(in interface{}) bool
func Name ¶
func Name(in reflect.StructField) string
Types ¶
type FieldErrs ¶
func NewFieldErr ¶
Click to show internal directories.
Click to hide internal directories.