16 lines
183 B
Go
16 lines
183 B
Go
|
package validator
|
||
|
|
||
|
import (
|
||
|
"github.com/go-playground/validator/v10"
|
||
|
)
|
||
|
|
||
|
var v *validator.Validate
|
||
|
|
||
|
func init() {
|
||
|
v = validator.New()
|
||
|
}
|
||
|
|
||
|
func Get() *validator.Validate {
|
||
|
return v
|
||
|
}
|