Documentation ¶
Index ¶
- Variables
- func CheckTheValidityOfChinaMobile(mobile string) (err error)
- func CheckTheValidityOfEmail(email string) (err error)
- func CheckTheValidityOfPassword(password string) (err error)
- func CheckTheValidityOfUsername(username string) (err error)
- func GetIDWithCookie(w http.ResponseWriter, r *http.Request) (ID int)
- func HashPwdCompare(hashedPwd []byte, password string) bool
- func HashPwdGenerate(password string) (hashPwd string, err error)
- func SendMail(to string) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorEmailFormat = errors.New("Email format error") ErrorMobileFormat = errors.New("Mobile format error") ErrorPwdFormat = errors.New("Password format error") ErrorUsernameformat = errors.New("Username format error") )
error set
Functions ¶
func CheckTheValidityOfChinaMobile ¶
CheckTheValidityOfChinaMobile -
func CheckTheValidityOfEmail ¶
CheckTheValidityOfEmail -
func CheckTheValidityOfPassword ¶
CheckTheValidityOfPassword -
func CheckTheValidityOfUsername ¶
CheckTheValidityOfUsername -
func GetIDWithCookie ¶
func GetIDWithCookie(w http.ResponseWriter, r *http.Request) (ID int)
GetIDWithCookie -
func HashPwdGenerate ¶
HashPwdGenerate -
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.