Documentation
¶
Overview ¶
Package validator is gin request parameter check library.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomValidator ¶
CustomValidator Custom valid objects
func Init ¶
func Init() *CustomValidator
Init validator instance, used to gin request parameter check
func (*CustomValidator) Engine ¶
func (v *CustomValidator) Engine() interface{}
Engine set tag name "binding", which is implementing the validator interface of the gin framework
func (*CustomValidator) ValidateStruct ¶
func (v *CustomValidator) ValidateStruct(obj interface{}) error
ValidateStruct validates a struct or slice/array
Click to show internal directories.
Click to hide internal directories.