update all validation tests

This commit is contained in:
Aneurin Barker Snook
2023-11-19 20:42:48 +00:00
parent db902e3c1c
commit 40482060ac
10 changed files with 24 additions and 32 deletions
+1 -3
View File
@@ -1,10 +1,8 @@
package validate
import "errors"
// Validation error.
var (
ErrValueNotAllowed = errors.New("not allowed")
ErrValueNotAllowed = NewError("not allowed")
)
// In validates whether a value is found in a slice of allowed values.