Versions in this module Expand all Collapse all v0 v0.1.2 Jun 28, 2023 Changes in this version + func Download(ctx context.Context, c *DownloadConfig, opts ...DownloadOption) error + type CheckConfig struct + Client *http.Client + Timeout time.Duration + URLs []string + type DownloadConfig struct + Client *http.Client + ContentLength int64 + Dirname string + Filename string + Procs int + URLs []string + type DownloadOption func(c *DownloadConfig) + func WithReferer(referer string) DownloadOption + func WithUserAgent(ua, version string) DownloadOption + type Options struct + Help bool + NumConnection int + Output string + Referer string + Timeout int + Trace bool + Update bool + UserAgent string + type Pget struct + Output string + Procs int + Trace bool + URLs []string + func New() *Pget + func (pget *Pget) Ready(version string, args []string) error + func (pget *Pget) Run(ctx context.Context, version string, args []string) error + type Range struct + func (r Range) BytesRange() string + type Target struct + ContentLength int64 + Filename string + URLs []string + func Check(ctx context.Context, c *CheckConfig) (*Target, error)