Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Downloader ¶
type Downloader struct { CpuNumbers int Pro *progressbar.ProgressBar }
func NewDownloader ¶
func NewDownloader(cpuNumbers int) *Downloader
func (*Downloader) Download ¶
func (d *Downloader) Download(url, filename string) error
func (*Downloader) MultiDownload ¶
func (d *Downloader) MultiDownload(url, filename string, contentLen int) error
并发下载文件
func (*Downloader) SingleDownload ¶
func (d *Downloader) SingleDownload(url, filename string) error
Click to show internal directories.
Click to hide internal directories.