Documentation
¶
Index ¶
- type ArrayOptions
- type ArrayRange
- type Blank
- type Composite
- type Currency
- type Date
- type Email
- type EqualTo
- type Field
- type GreaterOrEqual
- type GreaterThen
- 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 Length
- type LessOrEqual
- type LessThen
- type Nil
- type NotBlank
- type NotNil
- type Options
- type PhoneNumber
- type Range
- type RegularExpression
- type Required
- type Struct
- type Url
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 Composite ¶ added in v1.0.6
type Composite struct {
Constraints []validator.Constraint
}
type Field ¶ added in v1.0.6
type Field struct {
Constraints map[string]validator.Constraint
}
type GreaterOrEqual ¶ added in v1.0.5
type GreaterOrEqual struct {
Value float64
}
func (GreaterOrEqual) Validate ¶ added in v1.0.5
func (r GreaterOrEqual) Validate(value any) error
type GreaterThen ¶ added in v1.0.5
type GreaterThen struct {
Value float64
}
func (GreaterThen) Validate ¶ added in v1.0.5
func (r GreaterThen) Validate(value any) error
type LanguageWithRegion ¶
type LanguageWithRegion struct{}
func (LanguageWithRegion) Validate ¶
func (c LanguageWithRegion) Validate(value any) error
type LessOrEqual ¶ added in v1.0.5
type LessOrEqual struct {
Value float64
}
func (LessOrEqual) Validate ¶ added in v1.0.5
func (r LessOrEqual) Validate(value any) error
type PhoneNumber ¶ added in v1.0.6
type PhoneNumber struct {
Format string // Format string, e.g., "(00420) 000 000 000"
AllowEmpty bool // Allow empty values
}
func (PhoneNumber) Validate ¶ added in v1.0.6
func (c PhoneNumber) 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.