Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorFailedConstraint ¶
type ErrorResponse ¶
type ErrorResponse struct { Field string `json:"field"` Value interface{} `json:"value"` Failed ErrorFailedConstraint `json:"failed"` }
func Validate ¶
func Validate(data interface{}) []ErrorResponse
Click to show internal directories.
Click to hide internal directories.