Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterNullValueTypeFunc ¶
func RegisterNullValueTypeFunc[T any]()
func RegisterTypeFunc ¶
func RegisterTypeFunc(fn CustomTypeFunc, types ...any)
func RegisterValidationRules ¶
func RegisterValidationRules(rules ...ValidationRule) error
Types ¶
type CustomTypeFunc ¶
type ValidationRule ¶
type ValidationRule struct {
RuleTag string
ErrMessageTemplate string
ErrMessageI18nKey string
Validate func(fl v.FieldLevel) bool
ParseParam func(fe v.FieldError) []string
CallValidationEvenIfNull bool
}
Click to show internal directories.
Click to hide internal directories.