Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Errors ¶
Errors maps fields to the list of validation failures.
func (*Errors) Add ¶
Add appends the field and msg to the current list of errors. Add will initialize the Errors object if it is not initialized.
func (*Errors) GetErr ¶
GetErr allows you to use a nil Errors object and return directly. If there are no validation errors it returns nil.
func (*Errors) MarshalJSON ¶ added in v0.4.0
Click to show internal directories.
Click to hide internal directories.