Documentation ¶
Index ¶
- Constants
- func ComparePassword(hashedPassword []byte, password []byte) bool
- func Exponent(a, n uint64) uint64
- func FormatFileSize(fileSize uint64) (size string)
- func HashPassword(password []byte) ([]byte, error)
- func If(cond bool, yes interface{}, no interface{}) interface{}
- func PathExists(path string) (bool, error)
- func RandStr(size int, kind int) string
- type GobCopier
Constants ¶
View Source
const ( RandNum = iota // 纯数字 RandLower // 小写字母 RandUpper // 大写字母 RandAll // 数字、大小写字母 )
Variables ¶
This section is empty.
Functions ¶
func ComparePassword ¶
func FormatFileSize ¶
func HashPassword ¶
func PathExists ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.