validate

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Email

func Email(v string, isRequired bool, name string) (errors.E, bool)

Email 检查是否是Email

func IDCard

func IDCard(v string, isRequired bool, name string) (errors.E, bool)

IDCard 身份证

func IsEmpty

func IsEmpty(s interface{}) bool

IsEmpty 检查值是否是空

func MD5 added in v0.1.4

func MD5(v string, isRequired bool, name string) (errors.E, bool)

MD5 MD5

func MinLength

func MinLength(v string, length int, name string) (errors.E, bool)

MinLength 字符的最小长度

func Mobile

func Mobile(v string, isRequired bool, name string) (errors.E, bool)

Mobile 手机号码

func RealName

func RealName(v string, isRequired bool, name string) (errors.E, bool)

RealName 汉字姓名

func Required

func Required(v interface{}, name string) (errors.E, bool)

Required 检查是否为空

func UUID

func UUID(v string, isRequired bool, name string) (errors.E, bool)

UUID uuid

Types

This section is empty.

Jump to

Keyboard shortcuts

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