Documentation
¶
Index ¶
- func CheckParam(params ...string) bool
- func IsIdCard(cardNo string) bool
- func IsMail(username string) (isMail bool)
- func IsPhone(mobileNum string) bool
- func IsRunTesting() bool
- func IsValidPort(port int) bool
- func IsValidateEmail(email string) (err error)
- func IsValidateUsername(username string) error
- func RegexpReplace(reg, src, temp string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsValidateUsername ¶
验证用户名合法性,用户名必须由5-12位(数字、字母、_、-)组成,且必须以字母开头。
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.