mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-04 12:47:36 +08:00
13 lines
700 B
Go
13 lines
700 B
Go
package validator
|
|
|
|
import "errors"
|
|
|
|
var (
|
|
errStringToInt = errors.New("validator: unable to parse string to integer")
|
|
errValidateArgsMismatch = errors.New("validator: provide at least *http.Request and rules for Validate method")
|
|
errValidateMapJSONArgsMismatch = errors.New("validator: provide at least *http.Request and rules for ValidateMapJSON method")
|
|
errValidateJSONArgsMismatch = errors.New("validator: provide at least *http.Request and data structure for ValidateJSON method")
|
|
errInvalidArgument = errors.New("validator: invalid number of argument")
|
|
errRequirePtr = errors.New("validator: provide pointer to the data structure")
|
|
)
|