Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultValidator ¶
type DefaultValidator struct {
// contains filtered or unexported fields
}
DefaultValidator 验证器
func (*DefaultValidator) Engine ¶
func (v *DefaultValidator) Engine() interface{}
Engine 返回支持`StructValidator`实现的底层验证引擎
func (*DefaultValidator) ValidateStruct ¶
func (v *DefaultValidator) ValidateStruct(obj interface{}) error
ValidateStruct 如果接收到的类型是一个结构体或指向结构体的指针,则执行验证。
Click to show internal directories.
Click to hide internal directories.