validator

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2021 License: MIT Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alpha

type Alpha struct {
}

func (*Alpha) Validate

func (r *Alpha) Validate(form models.Form, params string, key string, value interface{}) (string, bool)

type AlphaDash

type AlphaDash struct {
}

func (*AlphaDash) Validate

func (r *AlphaDash) Validate(form models.Form, params string, key string, value interface{}) (string, bool)

type AlphaNumeric

type AlphaNumeric struct {
}

func (*AlphaNumeric) Validate

func (r *AlphaNumeric) Validate(form models.Form, params string, key string, value interface{}) (string, bool)

type Base64

type Base64 struct {
}

func (*Base64) Validate

func (r *Base64) Validate(form models.Form, params string, key string, value interface{}) (string, bool)

type Email

type Email struct {
}

func (*Email) Validate

func (r *Email) Validate(form models.Form, params string, key string, value interface{}) (string, bool)

type IPv4

type IPv4 struct {
}

func (*IPv4) Validate

func (r *IPv4) Validate(form models.Form, params string, key string, value interface{}) (string, bool)

type Length

type Length struct {
}

func (*Length) Validate

func (m *Length) Validate(form models.Form, params string, key string, value interface{}) (string, bool)

type Match

type Match struct {
}

func (*Match) Validate

func (r *Match) Validate(form models.Form, params string, key string, value interface{}) (string, bool)

type Max

type Max struct {
}

func (*Max) Validate

func (m *Max) Validate(form models.Form, params string, key string, value interface{}) (string, bool)

type MaxSize

type MaxSize struct {
}

func (*MaxSize) Validate

func (m *MaxSize) Validate(form models.Form, params string, key string, value interface{}) (string, bool)

type Min

type Min struct {
}

func (*Min) Validate

func (m *Min) Validate(form models.Form, params string, key string, value interface{}) (string, bool)

type MinSize

type MinSize struct {
}

func (*MinSize) Validate

func (m *MinSize) Validate(form models.Form, params string, key string, value interface{}) (string, bool)

type Mobile

type Mobile struct {
}

func (*Mobile) Validate

func (r *Mobile) Validate(form models.Form, params string, key string, value interface{}) (string, bool)

type NoMatch

type NoMatch struct {
}

func (*NoMatch) Validate

func (r *NoMatch) Validate(form models.Form, params string, key string, value interface{}) (string, bool)

type Numeric

type Numeric struct {
}

func (*Numeric) Validate

func (r *Numeric) Validate(form models.Form, params string, key string, value interface{}) (string, bool)

type Phone

type Phone struct {
}

func (*Phone) Validate

func (r *Phone) Validate(form models.Form, params string, key string, value interface{}) (string, bool)

type Range

type Range struct {
}

func (*Range) Validate

func (m *Range) Validate(form models.Form, params string, key string, value interface{}) (string, bool)

type Required

type Required struct {
}

func (*Required) Validate

func (r *Required) Validate(form models.Form, params string, key string, value interface{}) (string, bool)

type TEL

type TEL struct {
}

func (*TEL) Validate

func (r *TEL) Validate(form models.Form, params string, key string, value interface{}) (string, bool)

type ZipCode

type ZipCode struct {
}

func (*ZipCode) Validate

func (r *ZipCode) Validate(form models.Form, params string, key string, value interface{}) (string, bool)

Jump to

Keyboard shortcuts

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