Documentation ¶
Index ¶
- Variables
- func AesDecrypt(crypted, key []byte, ivs ...[]byte) ([]byte, error)
- func AesEncrypt(origData, key []byte) ([]byte, error)
- func AppendData(data []byte, prefixData []byte, suffixData []byte) []byte
- func Base64ToStr(Base64 string) string
- func ByteCountIEC(b int64) string
- func ByteCountSI(b int64) string
- func CheckDirDelete(dirPth, savePath string) (err error)
- func CheckError(e error)
- func CustomBoundary() string
- func DataToImage(data []byte) []byte
- func DownloadBFile(finalURL, outputFilePath string) error
- func DownloadFileFromB(url string) ([]byte, error)
- func DownloadFileFromBx(url string) ([]byte, error)
- func DownloadPartData(fileUrl string, Header map[string][]string) ([]byte, error)
- func FetchHTTPRequest(fetchReq FetchRequest) string
- func FileSplitCount(fileSize int64, splitSize int64) int
- func FileToImage(filename string, imgName string)
- func FunProcessTime(函数名字 string, start time.Time)
- func FunTime(start time.Time, timeLimit time.Duration)
- func GZipBytes(data []byte) []byte
- func GenerateBoundary() string
- func GetBetweenStr(str, starting, ending string) (retStr string)
- func GetByteMd5(data []byte) string
- func GetCurrentFunctionName() string
- func GetFileMd5(filename string) string
- func GetFileModTime(pathname string) int64
- func GetFileSize(pathname string) int64
- func GetPercent(DoneCount, FileCount int) int
- func GetRandomInt(min, max int) int
- func GetUserAgent() string
- func Go(x func())
- func GorequestGet(Url string) []byte
- func ImageToData(imageData []byte) []byte
- func ImageToFile(imgName string, filename string)
- func InitConfig(path string) map[string]string
- func IsDebugMode() bool
- func IsFile(f string) bool
- func LoadFromGob(filename string) ([]map[string]string, error)
- func MakeFileSize(fileName string, fileSize int64)
- func MergeBytes(a, b []byte, index int) []byte
- func MergeBytesTruncateA(a, b []byte, index int) []byte
- func NewUUID() string
- func PKCS5Padding(ciphertext []byte, blockSize int) []byte
- func PKCS7UnPadding(origData []byte) []byte
- func PathExists(path string) bool
- func PostData(PostUrl string, Header http.Header, Data []byte) (ret string, err error)
- func PostcData(PostUrl string, cData []byte, Header map[string][]string) string
- func Println(v ...interface{})
- func ProcessPostData(Data []byte) []byte
- func QrcodeFile(text string, size int) []byte
- func QrcodeGifFile(text string, size int) []byte
- func RandInt(min, max int) int
- func RandStringRunes(n int) string
- func RandomFileFromZip(zipPath string) ([]byte, error)
- func ReadIni(iniFileName, Section, key string) *ini.Key
- func ResizeImage(img image.Image, width, height int) image.Image
- func ReverseBytes(data []byte)
- func SaveToGob(filename string, data []map[string]string) error
- func StrToBase64(Str string) string
- func UGZipBytes(data []byte) []byte
- func UploadDataToB(tsData []byte) string
- func UploadFileToB(filePath string, partSize int) (string, error)
- func WriteIni(iniFileName, Section, key, value string)
- func WriteLog(info string, fileName string, addTime bool) bool
- type FetchRequest
Constants ¶
This section is empty.
Variables ¶
View Source
var ( UseProxy = true CookieBilibili string )
Functions ¶
func AesEncrypt ¶
func Base64ToStr ¶
func CheckDirDelete ¶
func CustomBoundary ¶
func CustomBoundary() string
func DataToImage ¶
func DownloadFileFromB ¶
func DownloadFileFromBx ¶
func DownloadPartData ¶
func FetchHTTPRequest ¶
func FetchHTTPRequest(fetchReq FetchRequest) string
func FileSplitCount ¶
func FileToImage ¶
func FunProcessTime ¶
func FunTime ¶
函数用时 用于检查执行时间是否超过限制,并输出警告信息。 参数:
- tag: 标签用于标识警告的来源
- detailed: 详细信息,描述执行的具体内容
- start: 开始时间,表示代码开始执行的时间点
- timeLimit: 时间限制,表示允许的最长执行时间
func GetBetweenStr ¶
func GetCurrentFunctionName ¶
func GetCurrentFunctionName() string
func GetFileSize ¶
func GetPercent ¶
func GetRandomInt ¶
func GetUserAgent ¶
func GetUserAgent() string
func GorequestGet ¶
func ImageToData ¶
func ImageToFile ¶
func IsDebugMode ¶
func IsDebugMode() bool
func MakeFileSize ¶
func MergeBytes ¶
func MergeBytesTruncateA ¶
func PKCS5Padding ¶
func PKCS7UnPadding ¶
func ProcessPostData ¶
func QrcodeFile ¶
func QrcodeGifFile ¶
func RandStringRunes ¶
func RandomFileFromZip ¶
RandomFileFromZip 从ZIP文件中随机选取一个文件并返回其内容
func ReverseBytes ¶
func ReverseBytes(data []byte)
func StrToBase64 ¶
Types ¶
type FetchRequest ¶
type FetchRequest struct { URL string `json:"url"` Method string `json:"method"` Headers map[string]string `json:"headers"` Body []byte `json:"body"` }
func FetchToJSON ¶
func FetchToJSON(fetchCall string) (FetchRequest, error)
func ParseRawRequest ¶
func ParseRawRequest(rawRequest string) FetchRequest
Click to show internal directories.
Click to hide internal directories.