Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultResourceCheck ¶
func DefaultResourceCheck(fl vali.FieldLevel) bool
DefaultResourceCheck to check resource id in request form
func Enum ¶
func Enum(fl vali.FieldLevel) bool
Enum validate the val is in enum type or not, only support string type use like this: `form:"user_type" binding:"required,enum=[01/02/03]"`
func NewResourceCheck ¶
func NewResourceCheck(chks ...validator.ResourceChecker) vali.Func
NewResourceCheck .
func RegisterResChk ¶
func RegisterResChk(name string, ic validator.ResourceChecker)
RegisterResChk to bind name with checker
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.