Documentation ¶
Index ¶
Constants ¶
View Source
const ( FieldType = "type" FieldChannels = "channels" FieldToken = "token" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Result ¶
type Result struct { Error string `json:"error,omitempty"` Code string `json:"code,omitempty"` FieldErrors []fieldError `json:"field_errors,omitempty"` }
Result represent validation result that include error message, error code, and field validation errors.
func (*Result) AddFieldError ¶
AddFieldError creates a new fieldError object and adds it to the Result.FieldErrors
Click to show internal directories.
Click to hide internal directories.