mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-20 15:31:24 +02:00
Cleaned up some validation code, stricter validation
This commit is contained in:
@@ -9,6 +9,10 @@ var validate = validator.New()
|
||||
|
||||
var ErrValidationError = E.New("validation error")
|
||||
|
||||
type CustomValidator interface {
|
||||
Validate() E.Error
|
||||
}
|
||||
|
||||
func Validator() *validator.Validate {
|
||||
return validate
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user