Documentation
¶
Index ¶
- Variables
- func EncodeMD5(str string) string
- func EncodeSha1(str string) string
- func EncodeSha256(str string) string
- func HFUID() string
- func Init() error
- func RandCode() string
- func RandomInt(limit int64) (int64, error)
- func RandomString(l int, allowedRunes []rune) string
- func ResetPasswordCode(email string) string
- func RuneSequence(l int, allowedRunes []rune) (seq []rune, err error)
- func SessionToken() string
- func TruncateString(str string, limit int) string
- func UID() uint64
- func VerificationCode(email string) string
- func VerifyResetPasswordCode(code, email string) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AlphaNum = []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789") Alpha = []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ") AlphaLowerNum = []rune("abcdefghijklmnopqrstuvwxyz0123456789") AlphaUpperNum = []rune("ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789") AlphaLower = []rune("abcdefghijklmnopqrstuvwxyz") AlphaUpper = []rune("ABCDEFGHIJKLMNOPQRSTUVWXYZ") Numeric = []rune("0123456789") )
Functions ¶
func EncodeSha1 ¶
func EncodeSha256 ¶
func RandomString ¶
func ResetPasswordCode ¶
func SessionToken ¶
func SessionToken() string
func TruncateString ¶
func VerificationCode ¶
func VerifyResetPasswordCode ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.