Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssetNameForPlatform ¶
AssetNameForPlatform returns a platform's GoReleaser asset name.
func CompareVersions ¶
CompareVersions compares two semantic release versions.
func NormalizeVersion ¶
NormalizeVersion removes a release tag's optional leading v.
Types ¶
type ApplyOptions ¶
type ApplyOptions struct {
Client *Client
CurrentVer string
Force bool
DestPath string
GOOS string
GOARCH string
}
ApplyOptions controls release selection and executable replacement.
type Asset ¶
type Asset struct {
Name string `json:"name"`
BrowserDownloadURL string `json:"browser_download_url"`
}
Asset is a downloadable GitHub release asset.
type CheckResult ¶
type CheckResult struct {
Current string
Latest string
Update bool
Applied bool
Comparable bool
Asset string
}
CheckResult describes the latest release for the current version.
func Apply ¶
func Apply(ctx context.Context, opts ApplyOptions) (CheckResult, error)
Apply downloads, verifies, extracts, and installs the latest release.
Click to show internal directories.
Click to hide internal directories.