Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Downloader ¶
type Downloader struct {
// contains filtered or unexported fields
}
Downloader wraps the HTTP client to make get requests to a url and unzip to a specific directory.
func NewDownloader ¶
func NewDownloader() *Downloader
NewDownloader creates a downloader with a default HTTP client which is used to download files from the net.
func (*Downloader) Get ¶
func (d *Downloader) Get(url, dir string) error
Get takes a url and a directory where the contents should be unzipped into.
Click to show internal directories.
Click to hide internal directories.