Documentation ¶
Overview ¶
stolen this from https://github.com/austinh115/lz-string-go
Index ¶
- func AESDecodeStr(crypt, key string) string
- func AESEncodeStr(src, key string) string
- func BASE64DecodeStr(src string) string
- func BASE64EncodeStr(src string) string
- func CheckSliceContains(slice []string, item string) bool
- func CopyFile(src, dst string, force bool) error
- func GetAppdataPath() string
- func GetCpuID() string
- func GetMACAddress() (string, error)
- func GetMd5String(s string, upper bool, half bool) string
- func GetParsedCookie(cookie []*http.Cookie) string
- func GetRawProxy(proxylist []string) string
- func HMAC_SHA1(src, key string) string
- func HMAC_SHA256(src, key string) string
- func HMAC_SHA512(src, key string) string
- func Hhex2Int(hexStr string) uint64
- func IsEmpty(s string) bool
- func Jig(src string) string
- func LZCompress(uncompressed string, keyStrBase64 string) string
- func LZDecompress(input string, keyStrBase64 string) (string, error)
- func MD5Str(src string) string
- func NewPool() *redis.Pool
- func NikeUUID() string
- func PKCS5Padding(ciphertext []byte, blockSize int) []byte
- func PKCS5Trimming(encrypt []byte) []byte
- func PackCookiesToString(cks map[string]http.Cookie) string
- func ParseCookiesFromHeader(cookies []string) map[string]http.Cookie
- func ParseSetCookieSingle(str string) http.Cookie
- func PathCheckAndCreate(s string, perm os.FileMode) error
- func PathExists(path string) (bool, error)
- func RandMapObject(m interface{}) interface{}
- func RandSliceObject(s interface{}) interface{}
- func RandSliceString(s []string) string
- func RandStringWithSetLength(n int) string
- func RandomChineseCharacterN(length int) string
- func ReadJson(f string, data interface{}) error
- func RsaDecrypt(ciphertext []byte, privateKey []byte) ([]byte, error)
- func RsaEncrypt(origData []byte, publicKey []byte) ([]byte, error)
- func SHA256Str(src string) string
- func SHA512Str(src string) string
- func ShuffleSlice(s interface{})
- func UniqueID() string
- func WriteJson(f string, data interface{}, perm os.FileMode) error
- type Proxy
- type ProxyType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AESDecodeStr ¶
func AESEncodeStr ¶
func CheckSliceContains ¶
func GetAppdataPath ¶
func GetAppdataPath() string
func GetMd5String ¶
GetMd5String : 生成32位md5字串
func GetParsedCookie ¶
GetParsedCookie : Handle Cookie From Response
func LZCompress ¶
func PKCS5Padding ¶
func PKCS5Trimming ¶
func ParseCookiesFromHeader ¶
解析setCookie
func ParseSetCookieSingle ¶
func PathExists ¶
func RandMapObject ¶
func RandMapObject(m interface{}) interface{}
func RandSliceObject ¶
func RandSliceObject(s interface{}) interface{}
func RandSliceString ¶
func RandStringWithSetLength ¶
func RandomChineseCharacterN ¶
func ShuffleSlice ¶
func ShuffleSlice(s interface{})
Types ¶
Click to show internal directories.
Click to hide internal directories.