portal/validator/validator.go

16 lines
183 B
Go
Raw Normal View History

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