validator

package
v0.0.0-...-e5a5a09 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValueInList

func ValueInList[T comparable](value T, list ...T) bool

Types

type Errors

type Errors map[string]string

type Validator

type Validator struct {
	Errors
}

func NewValidator

func NewValidator() *Validator

func (*Validator) AddError

func (v *Validator) AddError(key string, value string)

func (*Validator) IsValid

func (v *Validator) IsValid() bool

Jump to

Keyboard shortcuts

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