Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadToFile ¶
DownloadToFile downloads a URL to a file
func Latest ¶
Latest fetches the latest release info Returns version number, filename & download url
func ReplaceFile ¶
ReplaceFile replaces one file with another Running files cannot be overwritten, so it has to be moved and the new binary saved to the original path. This requires read & write permissions to both the original file and directory
Types ¶
type Repository ¶
type Repository struct { Assets []struct { BrowserDownloadURL string `json:"browser_download_url"` CreatedAt string `json:"created_at"` ID int64 `json:"id"` Name string `json:"name"` Size int64 `json:"size"` } `json:"assets"` Name string `json:"name"` Prerelease bool `json:"prerelease"` PublishedAt string `json:"published_at"` TagName string `json:"tag_name"` }
Repository struct for Github release json
Click to show internal directories.
Click to hide internal directories.