Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HTTPError ¶
type HTTPError struct { Code int `json:"code"` Message string `json:"message"` Details interface{} `json:"details,omitempty"` }
HTTPError represents an HTTP error.
type ValidatorError ¶
ValidatorError represents error validation struct.
func ValidateStruct ¶
func ValidateStruct(task interface{}) (errors []*ValidatorError)
ValidateStruct checks if a struct is valid and returns an array of errors if it is not valid.
Click to show internal directories.
Click to hide internal directories.