validator

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrValidate = errors.New("ErrValidate")
)

Functions

func IsBlank

func IsBlank(s string) error

func IsIn

func IsIn(s string, values ...string) error

func IsNumber

func IsNumber(s string) error

func Validate

func Validate(validators ...Validator) error

Types

type Validator

type Validator func() error

func ValidateAll

func ValidateAll(validators ...Validator) Validator

func ValidateIsBlank

func ValidateIsBlank(s string) Validator

func ValidateIsIn

func ValidateIsIn(s string, values ...string) Validator

Jump to

Keyboard shortcuts

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