Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorTranslator ¶ added in v0.16.0
type Option ¶ added in v0.16.0
type Option interface {
// contains filtered or unexported methods
}
func WithErrorTranslator ¶ added in v0.16.0
func WithErrorTranslator(et ErrorTranslator) Option
func WithTagValidator ¶ added in v0.16.0
func WithTagValidator(tv TagValidator) Option
type TagValidator ¶ added in v0.16.0
type TagValidator interface {
// Tag returns the identifier of the custom validator.
Tag() string
// Validate implements the actual validation logic.
Validate(param string, field reflect.Value) bool
// AlwaysValidate informs that the Validate function
// should always be called, even if the field is not set
AlwaysValidate() bool
}
Click to show internal directories.
Click to hide internal directories.