Documentation
¶
Index ¶
- type ArrayOptions
- type ArrayRange
- type Blank
- type Currency
- type Email
- type IsBool
- type IsFalse
- type IsFloat
- type IsFloat32
- type IsFloat64
- type IsInt
- type IsInt8
- type IsInt16
- type IsInt32
- type IsInt64
- type IsString
- type IsStruct
- type IsTrue
- type IsUint
- type IsUint8
- type IsUint16
- type IsUint32
- type IsUint64
- type Language
- type LanguageWithRegion
- type Nil
- type NotBlank
- type NotNil
- type Options
- type RangeConstraint
- type RegularExpression
- type Required
- type Struct
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArrayOptions ¶ added in v1.0.3
type ArrayOptions struct {
Options []any
}
func (ArrayOptions) Validate ¶ added in v1.0.3
func (c ArrayOptions) Validate(value any) error
type ArrayRange ¶ added in v1.0.3
func (ArrayRange) Validate ¶ added in v1.0.3
func (c ArrayRange) Validate(value any) error
type LanguageWithRegion ¶
type LanguageWithRegion struct{}
func (LanguageWithRegion) Validate ¶
func (c LanguageWithRegion) Validate(value any) error
type RangeConstraint ¶
func (RangeConstraint) Validate ¶
func (r RangeConstraint) Validate(value any) error
type RegularExpression ¶ added in v1.0.2
type RegularExpression struct {
Regexp string
}
func (RegularExpression) Validate ¶ added in v1.0.2
func (c RegularExpression) Validate(value any) error
Click to show internal directories.
Click to hide internal directories.