validator

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBadFormat = errors.New("invalid format")
)

Functions

This section is empty.

Types

type EmailValidator

type EmailValidator struct {
}

func (EmailValidator) IsValid

func (ev EmailValidator) IsValid(email interface{}) bool

type PasswordValidator

type PasswordValidator struct {
}

func (PasswordValidator) IsValid

func (pv PasswordValidator) IsValid(password interface{}) bool

type PhoneNumberValidator

type PhoneNumberValidator struct {
}

func (PhoneNumberValidator) IsValid

func (pv PhoneNumberValidator) IsValid(phoneNumber interface{}) bool

type URLValidator

type URLValidator struct {
}

func (URLValidator) IsValid

func (v URLValidator) IsValid(URL interface{}) bool

type Validator

type Validator interface {
	IsValid(key interface{}) bool
}

Jump to

Keyboard shortcuts

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