validator

package
v0.0.0-...-69bc0f9 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate

func Validate(ctx context.Context, i interface{}) error

Types

type Error

type Error struct {
	Field   string `json:"field" example:"password"`
	Message string `json:"message" example:"Password is incorrect"`
}

Error represents a validation error for responses.

func (Error) Error

func (e Error) Error() string

type Errors

type Errors []Error

func GetErrors

func GetErrors(err error) Errors

func (Errors) Error

func (e Errors) Error() string

Jump to

Keyboard shortcuts

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