Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Downloader ¶
Downloader is an interface to download programs
type HTTP ¶
type HTTP struct { UseCache bool // contains filtered or unexported fields }
HTTP implements Downloader which downloads programs through net/http
type LocalFile ¶
type LocalFile struct {
// contains filtered or unexported fields
}
LocalFile implements Downloader, which simulates download through filesystem.
func NewLocalFile ¶
func NewLocalFile(r io.ReadCloser) *LocalFile
Click to show internal directories.
Click to hide internal directories.