Documentation
¶
Index ¶
- Variables
- func Map(target FormData, data map[string]interface{})
- type Error
- type Form
- func (form *Form) GetError(code uint, errors map[string]error) error
- func (form *Form) Validate(target FormData, data map[string]interface{}) (error, map[string]error)
- func (form *Form) ValidateForm(target FormData, payload url.Values) (error, map[string]error)
- func (form *Form) ValidateJSON(target FormData, reader io.Reader) (error, map[string]error)
- type FormData
Constants ¶
This section is empty.
Variables ¶
View Source
var Errors = map[uint]string{ codes.Unknown: "Unknown error.", codes.Invalid: "Ensure that all values are valid.", codes.InvalidJSON: "Unable to parse JSON.", }
Functions ¶
Types ¶
type Error ¶
Click to show internal directories.
Click to hide internal directories.