Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StructValidator ¶
type StructValidator struct {
// contains filtered or unexported fields
}
func New ¶
func New() *StructValidator
func (StructValidator) Validate ¶
func (s StructValidator) Validate(payload interface{}, responsePayload interface{}) error
Validates a struct and return an interface with errors messages Is important to notice that each field returns only one error
Click to show internal directories.
Click to hide internal directories.