Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InstallLatest ¶
InstallLatest downloads the latest release binary for the current OS/Arch and replaces the running executable.
Types ¶
type Release ¶
type Release struct {
TagName string `json:"tag_name"`
Assets struct {
Links []struct {
Name string `json:"name"`
URL string `json:"url"`
} `json:"links"`
} `json:"assets"`
}
Release represents a GitLab release
func CheckForUpdate ¶
CheckForUpdate checks the GitLab API for the latest release. Returns the release if an update is available, otherwise nil.
Click to show internal directories.
Click to hide internal directories.