Documentation
¶
Index ¶
- Constants
- func AESDecrypt(crypted, key, iv []byte) ([]byte, error)
- func AESEncrypt(plaintext, key, iv []byte) ([]byte, error)
- func CopyObject(src, dest interface{}) error
- func CopySlice(src, dest interface{}) error
- func GetExecDir() (dir, file string)
- func IP2Int(ip string) int64
- func IfTrue(b bool, t, f interface{}) interface{}
- func IfTrueFloat(b bool, t, f float64) float64
- func IfTrueInt(b bool, t, f int) int
- func IfTrueInt64(b bool, t, f int64) int64
- func IfTrueStr(b bool, t, f string) string
- func Int2IP(ipint int64) string
- func Joins(slice []interface{}, delim string) string
- func MD5(plainText []byte) string
- func SHA1(plainText []byte) string
- type IPNumber
- type RandomGenerator
Constants ¶
View Source
const Digits = "0123456789"
View Source
const DigitsAndLetters = "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM0123456789"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RandomGenerator ¶
RandomGenerator 随机字符串生成器
func CreateRandomGenerator ¶
func CreateRandomGenerator(pool string) RandomGenerator
CreateRandomGenerator 创建随机字符生成器
Click to show internal directories.
Click to hide internal directories.