Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ValidationError ¶
type ValidationError struct {
// contains filtered or unexported fields
}
ValidationError - Errors for tags validation.
func NewValidationError ¶
func NewValidationError(errors []*ValidationErrorResponse) *ValidationError
NewValidationError - ValidationError constructor.
func (*ValidationError) Error ¶
func (v *ValidationError) Error() string
func (*ValidationError) GetErrorsDetails ¶
func (v *ValidationError) GetErrorsDetails() []*ValidationErrorResponse
GetErrorsDetails - return the errors.
type ValidationErrorResponse ¶
ValidationErrorResponse - Struct for the validation error.
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
Validator - Validator type.
func (*Validator) ValidateStruct ¶
func (v *Validator) ValidateStruct(str interface{}) []*ValidationErrorResponse
ValidateStruct - apply validation.
Click to show internal directories.
Click to hide internal directories.