Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultTimeout = time.Second * 60 TempExtension = ".godownload" )
Variables ¶
This section is empty.
Functions ¶
func DownloadToFile ¶
Types ¶
type Options ¶
type Options struct {
ProgressHandler ProgressHandler
Timeout time.Duration
CreateTargetDir bool
}
func DefaultOptions ¶
func DefaultOptions() *Options
type ProgressHandler ¶
type ProgressWriter ¶
type ProgressWriter struct {
URL string
Filename string
BytesRead int64
ContentLength int64
ProgressHandler *ProgressHandler
CustomPayload interface{}
}
func (*ProgressWriter) Update ¶
func (fp *ProgressWriter) Update()
Click to show internal directories.
Click to hide internal directories.