Versions in this module Expand all Collapse all v0 v0.2.0 Feb 18, 2021 Changes in this version + func Init() error + func Validate(v interface{}) error + type Option struct + Max int64 + Min int64 + type RegexValidateRule struct + func NewRule(tag, regexStr string, opt *Option) *RegexValidateRule + func (r *RegexValidateRule) Explain() string + func (r *RegexValidateRule) Tag() string + func (r *RegexValidateRule) Validate(s string) bool + type Validator struct + func NewValidator() *Validator + func (v *Validator) AddErrorTranslation4Tag(tag string) error + func (v *Validator) RegisterRule(r *RegexValidateRule) error + func (v *Validator) Validate(i interface{}) error