Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FileUrlTemplate string = "{{.RemoteRepo}}/{{.FileName}}"
var RemoteRepo string = "https://github.com/datacharmer/mysql-docker-minimal/blob/master/dbdata" var RemoteRepoRaw string = "https://raw.githubusercontent.com/datacharmer/mysql-docker-minimal/master/dbdata"
View Source
var IndexUrlTemplate string = "{{.RemoteRepo}}/{{.FileName}}"
Functions ¶
func DownloadFile ¶
DownloadFile will download a url to a local file. It's efficient because it will write as it downloads and not load the whole file into memory.
Types ¶
type RemoteFilesMap ¶
func GetRemoteIndex ¶
func GetRemoteIndex() (index RemoteFilesMap, err error)
Click to show internal directories.
Click to hide internal directories.