Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsArrayEmpty ¶
func IsStringEmpty ¶
func ValidateStruct ¶
Types ¶
type FieldError ¶
type FieldError struct {
Field string `json:"field"`
Rule string `json:"rule"`
Message string `json:"message"`
}
FieldError describes a single field that failed validation.
type FieldErrors ¶
type FieldErrors []FieldError
FieldErrors is the set of validation failures for a payload. It implements error.
func (FieldErrors) Error ¶
func (fe FieldErrors) Error() string
Click to show internal directories.
Click to hide internal directories.