Versions in this module Expand all Collapse all v1 v1.3.0 Mar 11, 2021 Changes in this version + const RetryTimes + func FileNameStrip(fullName string) string + func FileSha1(filePath string) (hexDigest string, err error) + func Get(urlGet string, headers map[string]string, data map[string]string) ([]byte, error) + func GetWithResponse(urlGet string, headers map[string]string, data map[string]string) ([]byte, *http.Response, error) + func NewClient() *http.Client + func PostForm(urlPost string, headers map[string]string, data map[string]string) ([]byte, error) + func PostFormWithResponse(urlPost string, headers map[string]string, data map[string]string) ([]byte, *http.Response, error) + func ReadCookieFile() (string, error) + func Request(method, url string, body io.Reader, headers map[string]string) (*http.Response, error) + func ReverseStrings(s []string) + func Sha1(content []byte) string + type Cipher struct + func NewCipher() (*Cipher, error) + func (c *Cipher) Decrypt(cipherText []byte) ([]byte, error) + func (c *Cipher) Encrypt(plainText []byte) ([]byte, error) + type WaitGroupPool struct + func NewWaitGroupPool(size int) *WaitGroupPool + func (p *WaitGroupPool) Add() + func (p *WaitGroupPool) Done() + func (p *WaitGroupPool) Size() int + func (p *WaitGroupPool) Wait()