Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Downloader ¶
type Downloader struct {
// contains filtered or unexported fields
}
func NewDownloader ¶
func NewDownloader() *Downloader
func (*Downloader) Download ¶
func (dl *Downloader) Download(url, dest string) (string, error)
Download is used to download and file with terminal progress bar
func (*Downloader) SetProgressHandler ¶
func (dl *Downloader) SetProgressHandler(ph func(name string, savedSize, sumSize int))
func (*Downloader) SetRenameHandler ¶
func (dl *Downloader) SetRenameHandler(rh func(name string) (string, error))
Click to show internal directories.
Click to hide internal directories.