validation

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package validation provides infrastructure-level validation utilities and interfaces.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() (interfaces.Validator, error)

New creates a new validator instance with common validation rules

Types

type Error added in v0.1.5

type Error struct {
	Field   string
	Message string
	Value   any // The invalid value that caused the error
}

Error represents a single validation error

type Errors added in v0.1.5

type Errors []Error

Errors represents a collection of validation errors

func (Errors) Error added in v0.1.5

func (e Errors) 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