regexp

package
v0.0.0-...-59cc590 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEmail

func IsEmail(email string) bool

IsEmail 是否是email

func IsGoodPwd

func IsGoodPwd(str string) (bool, string)
Example
pwd := "a1111111"
fmt.Println(IsGoodPwd(pwd))

pwd1 := "!a111111"
fmt.Println(IsGoodPwd(pwd1))
Output:

false 密码包含至少一位数字,字母和特殊字符,且长度8-16
true !a111111

func IsMobile

func IsMobile(mobileNum string) bool

IsMobile check if mobile

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