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
}
func NewDownloader ¶
func NewDownloader(url string, fileName string, path string, taskNum int) *Downloader
func (*Downloader) Download ¶
func (d *Downloader) Download() error
func (*Downloader) GetFileSize ¶
func (d *Downloader) GetFileSize() (uint64, error)
Click to show internal directories.
Click to hide internal directories.