Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadUpdate ¶
DownloadUpdate downloads the Windows binary from the release
func HasInternet ¶
func HasInternet() bool
HasInternet checks if there's an internet connection by trying GitHub.
func InstallUpdate ¶
InstallUpdate replaces the current executable with the new one
Types ¶
type Asset ¶
type Asset struct {
Name string `json:"name"`
BrowserDownloadURL string `json:"browser_download_url"`
Size int64 `json:"size"`
}
Asset represents a release asset
Click to show internal directories.
Click to hide internal directories.