Documentation ¶
Index ¶
- Variables
- func BcryptHash(passwd string) (hash, salt string)
- func BcryptVerify(salt, hash, passwd string) bool
- func GetCurrentAbPath() string
- func GetCurrentAbPathByCaller() string
- func GetCurrentAbPathByExecutable() string
- func RandNumber(start, end int) func() int
- func RandSeqID(n int) func() string
- func Snowflake(startTime time.Time, machineID uint16) *sonyflake.Sonyflake
- func UUID() string
Constants ¶
This section is empty.
Variables ¶
View Source
var IP = new(addr)
Functions ¶
func BcryptHash ¶ added in v0.0.71
BcryptHash 明文加密
func BcryptVerify ¶ added in v0.0.71
BcryptVerify 校验密文和明文
func GetCurrentAbPath ¶
func GetCurrentAbPath() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.