validator

package
v0.0.0-...-ee12296 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Match

func Match(value string, rx *regexp.Regexp) bool

Types

type Validator

type Validator struct {
	Errors map[string]string
}

func New

func New() *Validator

func (*Validator) AddErr

func (v *Validator) AddErr(key, msg string)

func (*Validator) Check

func (v *Validator) Check(ok bool, key, msg string)

func (*Validator) Valid

func (v *Validator) Valid() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳