package
Version:
v0.0.1
Opens a new window with list of versions in this module.
Published: Jul 22, 2021
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
New returns a single validation error for the field with msg.
Errors maps fields to the list of validation failures.
Add appends the field and msg to the current list of errors. Add will initialize the Errors
object if it is not initialized.
Error returns the error string of Errors.
GetErr allows you to use a nil Errors object and return directly. If there are no validation errors it returns nil.
Messages are the validation failures for a given field.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.