Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Errors ¶
Errors holds onto all of the error messages that get generated during the validation process.
func NewErrors ¶
func NewErrors() *Errors
NewErrors returns a pointer to a Errors object that has been primed and ready to go.
func Validate ¶
Validate takes in n number of Validator objects and will run them and return back a point to a Errors object that will contain any errors.
func (*Errors) Add ¶
Add will add a new message to the list of errors using the given key. If the key already exists the message will be appended to the array of the existing messages.
func (*Errors) Append ¶
Append concatenates two Errors objects together. This will modify the first object in place.
Click to show internal directories.
Click to hide internal directories.