Documentation ¶
Index ¶
- func Between(s string, min, max int) bool
- func In(v interface{}, set interface{}) bool
- func IsAccount(account string, min int, max int) bool
- func IsDigit(digit string) bool
- func IsEmail(email string) bool
- func IsIdCard(idCard string) bool
- func IsMobile(mobile string) bool
- func IsNumber(number string, langths ...int) bool
- func IsQQ(qq string) bool
- func IsTelephone(telephone string) bool
- func IsUrl(url string) bool
- func Length(s string, n int) bool
- func MaxLength(s string, n int) bool
- func MinLength(s string, n int) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsIdCard ¶ added in v2.1.0
IsIdCard 检测是否是身份证号(国内18位) 感谢知乎网友提供:https://zhuanlan.zhihu.com/p/608188853
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.