Documentation ¶
Index ¶
Constants ¶
View Source
const ( // PrintInfoColor is information color PrintInfoColor = "\033[1;34m%s\033[0m" // PrintNoticeColor is notice color PrintNoticeColor = "\033[1;36m%s\033[0m" // PrintWarningColor is warning color PrintWarningColor = "\033[1;33m%s\033[0m" // PrintErrorColor is error color PrintErrorColor = "\033[1;31m%s\033[0m" // PrintDebugColor is debug color PrintDebugColor = "\033[0;36m%s\033[0m" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Random ¶
type Random struct{}
Random is a tool to generate chars in random
func (*Random) AutoGeneratePassword ¶
AutoGeneratePassword is defined to create a password with some salts and md5 result returned 返回md5后的password 和用于加盐的salt 如果提供的参数password为空密码生成为随机
func (*Random) RandStringBytesMask ¶
RandStringBytesMask is defined to ramdom strings in bytes n is defind as length
Click to show internal directories.
Click to hide internal directories.