Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ValidationError ¶
func (ValidationError) String ¶
func (e ValidationError) String() string
type ValidationErrors ¶
type ValidationErrors struct {
Errors []*ValidationError `json:"errors"`
}
func New ¶
func New() *ValidationErrors
func (*ValidationErrors) Add ¶
func (e *ValidationErrors) Add(field, message string, args ...any)
func (*ValidationErrors) AddMessage ¶
func (e *ValidationErrors) AddMessage(message string, args ...any)
func (*ValidationErrors) Error ¶
func (e *ValidationErrors) Error() string
func (*ValidationErrors) NilIfEmpty ¶
func (e *ValidationErrors) NilIfEmpty() error
Click to show internal directories.
Click to hide internal directories.