Documentation ¶ Index ¶ func AddFileToZip(zipWriter *zip.Writer, filename string, prefix string) error func DownloadBatch(sources []url.URL, destinations []string) ([]string, error) func DownloadFile(source url.URL, destination string) (string, error) func ZipFiles(filename string, files []string, prefix string) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func AddFileToZip ¶ func AddFileToZip(zipWriter *zip.Writer, filename string, prefix string) error func DownloadBatch ¶ func DownloadBatch(sources []url.URL, destinations []string) ([]string, error) Downloads a batch of files. Returns a slice of destination paths func DownloadFile ¶ func DownloadFile(source url.URL, destination string) (string, error) Downloads a single file and returns the destination path func ZipFiles ¶ func ZipFiles(filename string, files []string, prefix string) error ZipFiles compresses one or many files into a single zip archive file. Param 1: filename is the output zip file's name. Param 2: files is a list of files to add to the zip. Param 3: a prefix that should be stripped from all file names Types ¶ This section is empty. Source Files ¶ View all Source files download.go zip.go Click to show internal directories. Click to hide internal directories.