mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-20 04:42:33 +02:00
14 lines
258 B
Go
14 lines
258 B
Go
package utils
|
|
|
|
import (
|
|
"github.com/go-playground/validator/v10"
|
|
E "github.com/yusing/go-proxy/internal/error"
|
|
)
|
|
|
|
var validate = validator.New()
|
|
|
|
var ErrValidationError = E.New("validation error")
|
|
|
|
func Validator() *validator.Validate {
|
|
return validate
|
|
}
|