Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Validator ¶
type Validator interface {
// Struct validates a struct based on validation tags
Struct(any) error
// Var validates a single variable using a tag
Var(any, string) error
// RegisterValidation adds a custom validation with the given tag
RegisterValidation(string, func(fl validator.FieldLevel) bool) error
}
Validator defines the interface for validation operations
Click to show internal directories.
Click to hide internal directories.