Documentation ¶
Index ¶
- type Validation
- func (v *Validation) ASCII(field interface{}, key string, message string) bool
- func (v *Validation) Email(field interface{}, key string, message string) bool
- func (v *Validation) HasErrors() bool
- func (v *Validation) Latitude(field interface{}, key string, message string) bool
- func (v *Validation) Longitude(field interface{}, key string, message string) bool
- func (v *Validation) Max(field interface{}, max int, key string, message string) bool
- func (v *Validation) Min(field interface{}, min int, key string, message string) bool
- func (v *Validation) Numeric(field interface{}, min int, key string, message string) bool
- func (v *Validation) Required(field interface{}, key string, message string) bool
- func (v *Validation) URL(field interface{}, key string, message string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Validation ¶
func New ¶
func New() *Validation
func (*Validation) ASCII ¶
func (v *Validation) ASCII(field interface{}, key string, message string) bool
func (*Validation) Email ¶
func (v *Validation) Email(field interface{}, key string, message string) bool
func (*Validation) HasErrors ¶
func (v *Validation) HasErrors() bool
func (*Validation) Latitude ¶
func (v *Validation) Latitude(field interface{}, key string, message string) bool
func (*Validation) Longitude ¶
func (v *Validation) Longitude(field interface{}, key string, message string) bool
func (*Validation) Max ¶
func (v *Validation) Max(field interface{}, max int, key string, message string) bool
func (*Validation) Min ¶
func (v *Validation) Min(field interface{}, min int, key string, message string) bool
func (*Validation) Numeric ¶
func (v *Validation) Numeric(field interface{}, min int, key string, message string) bool
Click to show internal directories.
Click to hide internal directories.