Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultDataDir = "data"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DownloadOption ¶
type DownloadOption func(o *DownloadOptions)
func FromURL ¶
func FromURL(url string) DownloadOption
func WithDataDir ¶
func WithDataDir(dir string) DownloadOption
func WithHTTPClient ¶
func WithHTTPClient(client *http.Client) DownloadOption
type DownloadOptions ¶
func (*DownloadOptions) ApplyOptions ¶
func (o *DownloadOptions) ApplyOptions( opts []DownloadOption, defs ...DownloadOption, )
Click to show internal directories.
Click to hide internal directories.