Documentation ¶
Index ¶
- func Atoi(rawValue string) int
- func Download(client *http.Client, fileURL string, outFilePath string) (bool, int64)
- func Itoa(rawValue int) string
- func MakeHTTPClient() *http.Client
- func MakeProgressBarOutput(downloadStartedAt *time.Time, bw int64, sc int, fc int, rc int) string
- func MakeRequest(method, url string, params *url.Values, headers []*Header) *http.Request
- type Header
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Download ¶
Download is a utility function that downloads file into local machine at outFilePath.
func MakeHTTPClient ¶
MakeHTTPClient returns a pointer to http.Client with a default cookiejar.Jar
func MakeProgressBarOutput ¶
MakeProgressBarOutput returns formatted information shown by ProgressBar
Types ¶
Click to show internal directories.
Click to hide internal directories.