Versions in this module Expand all Collapse all v0 v0.0.4 Jun 27, 2021 Changes in this version + func ProgressRead(r io.Reader, total int64, progress ...ProgressFunc) io.Reader + type JSONObject = fastjson.Object + type JSONValue = fastjson.Value + type ProcessFunc = func(resp *http.Response) error + func Process(process ProcessFunc) ProcessFunc + func ProcessBytes(process func(data []byte) error) ProcessFunc + func ProcessCSV(read func(reader *csv.Reader) error, skip ...int) ProcessFunc + func ProcessJSON(v interface{}) ProcessFunc + func ProcessJSONDocument(process func(jv *JSONValue) error) ProcessFunc + func ProcessProgress(read ReadFunc, progress ...ProgressFunc) ProcessFunc + func ProcessTSV(read func(reader *csv.Reader) error, skip ...int) ProcessFunc + func Read(readFn ReadFunc) ProcessFunc + type ProgressFunc = func(cur, total, pct int64) + type ReadFunc = func(r io.Reader) error + type X struct + func Get(url string) *X + func New() *X + func Post(url string, body io.Reader) *X + func (x *X) Client(cli *http.Client) *X + func (x *X) Debug(yes ...bool) *X + func (x *X) Do() error + func (x *X) Err() error + func (x *X) Exec(ctx context.Context) error + func (x *X) Process(pFn ProcessFunc) *X + func (x *X) Request(method string, url string, body io.Reader) *X + func (x *X) SetRequest(req *http.Request) *X