Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileDownloader ¶
type FileDownloader struct {
// contains filtered or unexported fields
}
func NewFileDownloader ¶
func NewFileDownloader(saveDir string) *FileDownloader
func (*FileDownloader) Download ¶
func (d *FileDownloader) Download(url string) (string, int64, error)
func (*FileDownloader) DownloadAs ¶
func (*FileDownloader) SaveDirectory ¶
func (d *FileDownloader) SaveDirectory() string
func (*FileDownloader) SetHeader ¶
func (d *FileDownloader) SetHeader(h http.Header)
Click to show internal directories.
Click to hide internal directories.