tebakaja's picture
feat: add security features
a8ebadf
raw
history blame
221 Bytes
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) }