Documentation
¶
Index ¶
- func BcryptMake(pwd []byte) string
- func BcryptMakeCheck(pwd []byte, hashedPwd string) bool
- func GenerateRandomString(length int) (string, error)
- func MD5(str []byte, b ...byte) string
- func PathExists(path string) (bool, error)
- func RandString(len int) string
- func ValidateMobile(fl validator.FieldLevel) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BcryptMake ¶
func BcryptMakeCheck ¶
func GenerateRandomString ¶
generateRandomString 生成指定长度的随机字符串 使用base64编码来增加可读性,但请注意这会增加字符串的长度
func PathExists ¶
func RandString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.