validate

package
v0.0.0-...-3d8f939 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2019 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsCellphone

func IsCellphone(str ...string) bool

手提电话(不带前缀)最高11位

func IsColor

func IsColor(str ...string) bool

func IsDecimals

func IsDecimals(str ...string) bool

纯小数

func IsEmail

func IsEmail(s string) (bool, error)

邮箱 最高30位

func IsEngishLowCase

func IsEngishLowCase(str ...string) bool

************************ 英文类型 ************************ 仅小写

func IsEnglish

func IsEnglish(str ...string) bool

大小写混合

func IsEnglishCap

func IsEnglishCap(str ...string) bool

仅大写

func IsID

func IsID(str ...string) bool

************************ 自定义类型 *********************** 数字+字母 不限制大小写 6~30位

func IsInteger

func IsInteger(str ...string) bool

************************ 数字类型 *********************** 纯整数

func IsPwd

func IsPwd(str ...string) bool

数字+字母+符号 6~30位

func IsTelephone

func IsTelephone(str ...string) bool

家用电话(不带前缀) 最高8位

func IsURL

func IsURL(s string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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