validator

package
v0.0.0-...-ecddef1 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const SPECIAL_DELETE_ASCII string = "\x10"

Variables

This section is empty.

Functions

func CheckNotEmpty

func CheckNotEmpty(input, name string, errs errorlist.Errors)

func ValidateEmail

func ValidateEmail(errs errorlist.Errors, me *Email)

Types

type Email

type Email struct {
	EmailAddr string `schema:"email"`
}

func (*Email) Validate

func (me *Email) Validate(errs errorlist.Errors)

type Validator

type Validator interface {
	Validate(map[string]error)
}

Jump to

Keyboard shortcuts

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