Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
func CreateValidator ¶
func CreateValidator() *Validator
CreateValidator : Returns a new validator that can extract json tag values from struct
func (*Validator) ValidateRequired ¶
ValidateRequired : Returns a list of empty struct fields that have the required tag The returned list is a list a strings of the struct fields json tags
Click to show internal directories.
Click to hide internal directories.