validation

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2025 License: MIT Imports: 9 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL