Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnumIsInRange ¶
EnumIsInRange packages the int value of an enum, along with its name and exclusive min-max values, for validation. To call this validator on an enum, set Field: int(<enum>), where <enum> could be any enum with an underlying int (or similar) type. The Start and End values must be exclusive bounds, ie. 1 less than the minimum possible value and 1 more than the minimum possible value, respectively.
func (*EnumIsInRange) IsValid ¶
func (v *EnumIsInRange) IsValid(errors *validate.Errors)
IsValid : Validates that the value of the enum falls within the acceptable range of numerical enum values
Click to show internal directories.
Click to hide internal directories.