Versions in this module Expand all Collapse all v1 v1.0.1 Oct 16, 2022 v1.0.0 Oct 16, 2022 Changes in this version + var DEBUG bool + func ApiRequest(eapiOption EapiOption, options RequestData) (result string, header http.Header, err error) + func CacheKeyEncrypt(data string) (encrypted []byte) + func ChooseUserAgent() string + func CreateNewRequest(data string, url string, options RequestData) (answer string, resHeader http.Header, err error) + func DetectFileType(file []byte) (fileType, fileSubtype string) + func EapiDecrypt(encrypted []byte) (decrypted []byte) + func EapiEncrypt(data string) (encrypted []byte) + func EapiRequest(eapiOption EapiOption, options RequestData) (result string, header http.Header, err error) + func Format2Params(str string) (data string) + func ImageSize(file []byte) (width, height int, err error) + func MarkerDecrypt(encrypted []byte) (decrypted []byte) + func MarkerEncrypt(data string) (encrypted []byte) + func RandHex(n int) []byte + func RawRequest(url string, options RequestData) (result string, err error) + func ReadFile(filePath string) (b []byte, err error) + func SetLogger(logger Logger) + func SpliceStr(path string, data string) (result string) + type EapiOption struct + Json string + Path string + Url string + type Headers []struct + type Logger interface + Printf func(format string, v ...interface{}) + Println func(v ...interface{}) + type RequestData struct + Body string + Cookies []*http.Cookie + Headers Headers