Spaces:
Sleeping
Sleeping
package helpers | |
import "github.com/go-playground/validator/v10" | |
var validate *validator.Validate | |
func init() { validate = validator.New() } | |
func ValidateStruct(data interface{}) error { return validate.Struct(data) } | |