Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DigitCountValidator ¶
type DigitCountValidator struct {
// contains filtered or unexported fields
}
func NewDigitCountValidator ¶
func NewDigitCountValidator(cnt int) DigitCountValidator
func (DigitCountValidator) IsValid ¶
func (v DigitCountValidator) IsValid(s string) bool
type EyeColorValidator ¶
type EyeColorValidator struct { }
func NewEyeColorValidator ¶
func NewEyeColorValidator() EyeColorValidator
func (EyeColorValidator) IsValid ¶
func (v EyeColorValidator) IsValid(s string) bool
type HeightValidator ¶
type HeightValidator struct { }
func NewHeightValidator ¶
func NewHeightValidator() HeightValidator
func (HeightValidator) IsValid ¶
func (v HeightValidator) IsValid(s string) bool
type HexColorValidator ¶
type HexColorValidator struct { }
func NewHexColorValidator ¶
func NewHexColorValidator() HexColorValidator
func (HexColorValidator) IsValid ¶
func (v HexColorValidator) IsValid(s string) bool
type Key ¶
type Key string
func MandatoryKeys ¶
func MandatoryKeys() []Key
func (Key) IsValidValue ¶
func (Key) Validators ¶
func (k Key) Validators() []ValueValidator
type NumberValidator ¶
type NumberValidator struct { }
func NewNumberValidator ¶
func NewNumberValidator() NumberValidator
func (NumberValidator) IsValid ¶
func (v NumberValidator) IsValid(s string) bool
type Passport ¶
func ParseStrings ¶
type RangeValidator ¶
type RangeValidator struct {
// contains filtered or unexported fields
}
func NewRangeValidator ¶
func NewRangeValidator(min, max int64) RangeValidator
func (RangeValidator) IsValid ¶
func (v RangeValidator) IsValid(s string) bool
type ValueValidator ¶
Click to show internal directories.
Click to hide internal directories.