Documentation
¶
Overview ¶
Package validator sets up several methods for simple validation as well as setting up an interface which when implemented allows for custom validation logic by the implementor. `Valid()` returns a boolean indicating if the value(s) passed into it are valid based on the different types. `Assert()` returns an error indicating `nil` if the values are valid. Otherwise `Assert()` returns an error indicating the index of the value(s) passed into it as to which was determined to be invalid.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Assert ¶ added in v1.0.1
func Assert(objs ...interface{}) error
Assert determines the validity of each value passed in to determine if the inputs are valid. A non-nil error return indicates an invalid assertion and a nil error returns indicates validity
Types ¶
This section is empty.