Documentation ¶
Index ¶
- Constants
- func BytesToString(b []byte) string
- func HumanByte(bf interface{}) string
- func InArrStr(arr []string, str string) bool
- func Ip2long(ip net.IP) uint32
- func Long2ip(i uint32) net.IP
- func NowSec() time.Time
- func PasswordHash(password string) (string, error)
- func PasswordVerify(password, hash string) bool
- func RandSecret(min int, max int) (string, error)
- func RandomRunes(length int) string
- func StringToBytes(s string) []byte
Constants ¶
View Source
const ( KB = 1024 MB = 1024 * KB GB = 1024 * MB TB = 1024 * GB PB = 1024 * TB )
Variables ¶
This section is empty.
Functions ¶
func BytesToString ¶
BytesToString converts byte slice to string.
func PasswordHash ¶
func PasswordVerify ¶
func RandomRunes ¶
func StringToBytes ¶
StringToBytes converts string to byte slice.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.