Documentation ¶
Index ¶
- func ValidateFieldIsRequired[T AllowedFieldTypes](structName string, field string, value T) error
- func ValidateFieldMustBeUndefined[T AllowedFieldTypes](structName string, field string, value T) error
- func ValidateStructIsRequired(structName string, field string, value any) error
- func ValidateStructMustBeUndefined(structName string, field string, value any) error
- type AllowedFieldTypes
- type ErrFieldIsRequired
- type ErrFieldMustBeUndefined
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateFieldIsRequired ¶
func ValidateFieldIsRequired[T AllowedFieldTypes](structName string, field string, value T) error
func ValidateFieldMustBeUndefined ¶
func ValidateFieldMustBeUndefined[T AllowedFieldTypes](structName string, field string, value T) error
Types ¶
type ErrFieldIsRequired ¶
type ErrFieldIsRequired struct {
// contains filtered or unexported fields
}
func NewErrFieldIsRequired ¶
func NewErrFieldIsRequired(structName string, field string) *ErrFieldIsRequired
func (*ErrFieldIsRequired) Error ¶
func (e *ErrFieldIsRequired) Error() string
type ErrFieldMustBeUndefined ¶
type ErrFieldMustBeUndefined struct {
// contains filtered or unexported fields
}
func NewErrFieldMustBeUndefined ¶
func NewErrFieldMustBeUndefined(structName string, field string) *ErrFieldMustBeUndefined
func (*ErrFieldMustBeUndefined) Error ¶
func (e *ErrFieldMustBeUndefined) Error() string
Click to show internal directories.
Click to hide internal directories.