Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Downloader ¶
type Downloader struct { URL url.URL // 下载的 URL FileName string // 文件名 // contains filtered or unexported fields }
func NewDownloader ¶
func NewDownloader(url url.URL) *Downloader
func (*Downloader) Download ¶
func (d *Downloader) Download() (string, error)
Click to show internal directories.
Click to hide internal directories.