validate

package
v0.0.0-...-7690095 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEmail

func IsEmail(s string) bool

func IsIn

func IsIn(s string, in ...string) bool

func IsJSONPCallback

func IsJSONPCallback(s string) bool

func IsNotEmpty

func IsNotEmpty(s string) bool

func IsURL

func IsURL(s string) bool

func IsUrl

func IsUrl(s string) bool

func SetValue

func SetValue(field reflect.Value, val string) (ok bool)

Types

type ReqValidator

type ReqValidator bool

func (*ReqValidator) Validate

func (rv *ReqValidator) Validate(m interface{}, req url.Values) bool

Jump to

Keyboard shortcuts

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