Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfigFileViper ¶
LoadConfigFileViper 从配置文件加载配置到viper
func RandStringHex ¶
Generate a random string for hexadecimal. Docker Id use this.
func RandStringNumber ¶
RandStringNumber 创建指定位数的数字字符串; n < 18 , 常用于短信验证码等情况
func Sha256PasswordEncrypt ¶
Sha256PasswordEncrypt 对密码进行sha256加密
func Sha256PasswordValidate ¶
Sha256PasswordValidate 对密码进行sha256加密,并与已加密的密码进行比较
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.