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 struct
func NewDefaultValidator ¶
func NewDefaultValidator( mode *goflagsmode.Flag, ) *DefaultValidator
NewDefaultValidator creates a new default mapper validator
func (*DefaultValidator) ValidateNilFields ¶
func (d *DefaultValidator) ValidateNilFields( validations govalidatormappervalidations.Validations, data interface{}, mapper *govalidatormapper.Mapper, ) (err error)
ValidateNilFields validates if the fields are not nil
type Validator ¶
type Validator interface { ValidateNilFields( validations govalidatormappervalidations.Validations, data interface{}, mapper *govalidatormapper.Mapper, ) (err error) }
Validator interface
Click to show internal directories.
Click to hide internal directories.