Documentation ¶
Index ¶
- type Validator
- func (v *Validator) AddError(key, message string)
- func (v *Validator) Check(ok bool, key, message string)
- func (v *Validator) GetErrMsg() string
- func (v *Validator) IsEmail(email, key, message string)
- func (v *Validator) IsImage(imageType, key string)
- func (v *Validator) IsImageSize(imageSize, max int64, key string)
- func (v *Validator) IsLength(data, key string, minLength, maxLength int, message ...string)
- func (v *Validator) IsValidFullName(fullName, key string)
- func (v *Validator) IsValidPassword(password, key string)
- func (v *Validator) IsVideo(videoType, key string)
- func (v *Validator) IsVideoSize(videoSize, max int64, key string)
- func (v *Validator) Required(data, key, message string)
- func (v *Validator) Valid() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Validator ¶
func (*Validator) IsImageSize ¶
Validate Image Size
func (*Validator) IsValidFullName ¶
IsValidFullName validates the FullName with the given key
func (*Validator) IsValidPassword ¶
isValidPassword validates the password with the given key
func (*Validator) IsVideoSize ¶
Validate Video Size
Click to show internal directories.
Click to hide internal directories.