Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶ added in v0.2.0
func New() (interfaces.Validator, error)
New creates a new validator instance with common validation rules
Types ¶
type ValidationError ¶ added in v0.2.0
type ValidationError struct { Field string Message string Value any // The invalid value that caused the error }
ValidationError represents a single validation error
type ValidationErrors ¶ added in v0.2.0
type ValidationErrors []ValidationError
ValidationErrors represents a collection of validation errors
func (ValidationErrors) Error ¶ added in v0.2.0
func (e ValidationErrors) Error() string
Error implements the error interface
Click to show internal directories.
Click to hide internal directories.