Documentation
¶
Index ¶
Constants ¶
View Source
const (
ErrParamsCountNotMatch = errors.Err("parameters count not matched with validators")
)
Variables ¶
This section is empty.
Functions ¶
func UseStrictMul ¶
Types ¶
type SimpleEmail ¶
type SimpleEmail struct {
Err error
}
SimpleEmail only check '@” and '.' character
func (SimpleEmail) Validate ¶
func (e SimpleEmail) Validate(s string) error
type ValidChain ¶
type ValidChain []Validator
func New ¶
func New(validators ...Validator) ValidChain
func (ValidChain) StrictValidateM ¶
func (vc ValidChain) StrictValidateM(s ...string) error
func (ValidChain) Validate ¶
func (vc ValidChain) Validate(s string) error
Validate string with validators, return first error or nil
func (ValidChain) ValidateM ¶
func (vc ValidChain) ValidateM(s ...string) error
type Validator ¶
func ValidChars ¶
func ValidLength ¶
func ValidSimpleEmail ¶
func (Validator) CanbeEmpty ¶ added in v0.2.3
Click to show internal directories.
Click to hide internal directories.