Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Validate ¶
func Validate(s interface{}) []string
Validate runs struct-level validation on the provided struct `s`. It applies custom validators, such as the UUID validator, and returns a slice of error messages if validation fails. Each error message follows the format: "field::tag::param" in lowercase.
func WithUUIDValidator ¶
func WithUUIDValidator() validator.Option
WithUUIDValidator adds a custom UUID validator to the validator instance. This function registers the custom `uuid` validation with the validator.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.