Documentation
¶
Overview ¶
This package provides a simple validation library for Go applications. Validator is the main struct that holds the validation errors. It has a Valid method that returns true if there are no errors, and an AddError method to add a new error to the map. Besides the Validator struct, the package also provides a few validation functions like NotEmpty, GreaterThenEquals, and LowerThenEquals.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GreaterThenEquals ¶
GreaterThenEquals checks if a value is greater then or equal to a minimum value.
func LowerThenEquals ¶
LowerThenEquals checks if a value is lower then or equal to a maximum value.
Types ¶
Click to show internal directories.
Click to hide internal directories.