Documentation ¶
Index ¶
- func HashString(str string) string
- func InNumRange(val interface{}, min, max float64) bool
- func IntToByte(data int, len uintptr) (ret []byte)
- func IsEmail(email string) (err error)
- func IsIP(ip string) bool
- func IsMobile(mobile string) bool
- func IsNumeric(val interface{}) bool
- func IsOpenid(openid string) (err error)
- func IsQQNumber(qq string) (err error)
- func IsSQLInject(toMatchStr string) bool
- func IsValidField(field string) (err error)
- func IsValidFields(fields ...string) (err error)
- func IsValidIDCardCheckSum(idCard string) bool
- func IsValidIDCardNumber(id string) bool
- func SaltMD5(str string) (md5str string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InNumRange ¶ added in v0.1.10
func IsQQNumber ¶
func IsValidField ¶
IsValidField 检查合法输入, 白名单, 汉字, 数字, 字母,下划线,点
func IsValidFields ¶ added in v0.1.8
func IsValidIDCardCheckSum ¶
IsValidIDCardCheckSum 增加了尾号校验
func IsValidIDCardNumber ¶
IsValidIDCardNumber 只能用到2099年, 到达2100年就会出错
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.