Documentation
¶
Index ¶
Constants ¶
View Source
const ( GitHubRepo = "iyulab/oops" GitHubAPIURL = "https://api.github.com/repos/" + GitHubRepo + "/releases/latest" )
Variables ¶
This section is empty.
Functions ¶
func DownloadAndInstall ¶
DownloadAndInstall downloads and installs the update
func GetAssetName ¶
func GetAssetName() string
GetAssetName returns the expected asset name for current OS/arch
Types ¶
type Asset ¶
type Asset struct {
Name string `json:"name"`
BrowserDownloadURL string `json:"browser_download_url"`
}
Asset represents a release asset
Click to show internal directories.
Click to hide internal directories.