Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileDownloader ¶
type FileDownloader struct { SaveDir string DefaultHeader http.Header Client *http.Client ProxyReader ProxyReader }
func New ¶
func New(saveDir string) *FileDownloader
func (*FileDownloader) Download ¶
func (d *FileDownloader) Download(url string) (dest string, size int64, err error)
func (*FileDownloader) DownloadTo ¶
func (*FileDownloader) RemoveDir ¶
func (d *FileDownloader) RemoveDir() error
type ProgressBar ¶
type ProgressBar struct {
// contains filtered or unexported fields
}
func NewProgressBar ¶
func NewProgressBar(out io.Writer) *ProgressBar
func (*ProgressBar) Finish ¶
func (p *ProgressBar) Finish()
Click to show internal directories.
Click to hide internal directories.