Documentation ¶
Index ¶
- type Rules
- func (r Rules) Dimensions(fieldName string, v reflect.Value, m string) error
- func (r Rules) Either(fieldName string, v reflect.Value, m string) error
- func (r Rules) EndWith(fieldName string, v reflect.Value, m string) error
- func (r Rules) Filesize(fieldName string, v reflect.Value, m string) error
- func (r Rules) IsAlpha(fieldName string, v reflect.Value) error
- func (r Rules) IsAlphanumeric(fieldName string, v reflect.Value) error
- func (r Rules) IsArray(fieldName string, v reflect.Value) error
- func (r Rules) IsBase64(fieldName string, v reflect.Value) error
- func (r Rules) IsBool(fieldName string, v reflect.Value) error
- func (r Rules) IsDate(fieldName string, v reflect.Value) error
- func (r Rules) IsEmail(fieldName string, v reflect.Value) error
- func (r Rules) IsFloat(fieldName string, v reflect.Value) error
- func (r Rules) IsIPv4(fieldName string, v reflect.Value) error
- func (r Rules) IsIPv6(fieldName string, v reflect.Value) error
- func (r Rules) IsISBN(fieldName string, v reflect.Value) error
- func (r Rules) IsIn(fieldName string, v reflect.Value, in string) error
- func (r Rules) IsInt(fieldName string, v reflect.Value) error
- func (r Rules) IsLatitude(fieldName string, v reflect.Value) error
- func (r Rules) IsLongitude(fieldName string, v reflect.Value) error
- func (r Rules) IsNotIn(fieldName string, v reflect.Value, in string) error
- func (r Rules) IsNumber(fieldName string, v reflect.Value) error
- func (r Rules) IsNumeric(fieldName string, v reflect.Value) error
- func (r Rules) IsUUID(fieldName string, v reflect.Value) error
- func (r Rules) LengthBetween(fieldName string, v reflect.Value, m string) error
- func (r Rules) MaxLength(fieldName string, v reflect.Value, m string) error
- func (r Rules) MaxNumber(fieldName string, v reflect.Value, m string) error
- func (r Rules) Mimetype(fieldName string, v reflect.Value, m string) error
- func (r Rules) MinLength(fieldName string, v reflect.Value, m string) error
- func (r Rules) MinNumber(fieldName string, v reflect.Value, m string) error
- func (r Rules) NumberBetween(fieldName string, v reflect.Value, m string) error
- func (r Rules) Required(fieldName string, field reflect.Value) error
- func (r Rules) RequiredIf(fieldName string, v reflect.Value, m string) error
- func (r Rules) RequiredUnless(fieldName string, v reflect.Value, m string) error
- func (r Rules) StartsWith(fieldName string, v reflect.Value, m string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Rules ¶
Rules struct to run dynamic method name
func (Rules) Dimensions ¶ added in v0.5.0
Dimensions validation image dimension with minimal width and height or maximal width and height. You can also set the ratio to validate.
func (Rules) Filesize ¶ added in v0.5.0
Filesize validation file size. The file size cannot be exceeded the max.
func (Rules) IsAlphanumeric ¶
IsAlphanumeric to check values is alphanumeric or not
func (Rules) IsLatitude ¶
IsLatitude to check values is geo latitude or not
func (Rules) IsLongitude ¶
IsLongitude to check values is geo longitude or not
func (Rules) LengthBetween ¶
LengthBetween to check string values that have char length minimal and maximal
func (Rules) Mimetype ¶ added in v0.5.0
Mimetype validation file. You see the full listing of MIME types at this link https://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types
func (Rules) NumberBetween ¶ added in v0.2.0
NumberBetween to check number be less than maximal and be more than minimal
func (Rules) RequiredIf ¶ added in v0.3.0
RequiredIf to check another field is a match value
func (Rules) RequiredUnless ¶ added in v0.3.0
RequiredUnless to check another field is a doesn't match value