Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ValidationError ¶
type ValidationError struct { Message string `json:"message"` Field string `json:"field"` Err error `json:"error"` }
func ValidateMap ¶
func ValidateMap(v Validator, m map[string]interface{}, sampleStruct interface{}, allowedFields ...string) *ValidationError
func (*ValidationError) Error ¶
func (e *ValidationError) Error() string
func (*ValidationError) GenericError ¶
func (e *ValidationError) GenericError() generic_error.Error
Click to show internal directories.
Click to hide internal directories.