regexp

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

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

Go to latest
Published: Mar 10, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEmail

func IsEmail(email string) bool

IsEmail 是否是email

func IsIP

func IsIP(ip string) bool

IsIP 验证一个输入是不是IP地址

func IsMobile

func IsMobile(mobileNum string) bool

IsMobile check if mobile

func IsStrongPwd

func IsStrongPwd(pwd string) (bool, string)

IsStrongPwd 是否是合格的密码

func IsUserID

func IsUserID(userid string) bool

IsUserID IsUserID

func IsUsername

func IsUsername(username string) bool

IsUsername 是否只包含数字, 字母 -, _

func MobileReplaceRepl

func MobileReplaceRepl(str string) string

MobileReplaceRepl MobileReplaceRepl 手机号脱敏

Types

This section is empty.

Jump to

Keyboard shortcuts

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