Versions in this module Expand all Collapse all v1 v1.14.4 Jul 14, 2022 Changes in this version + var APITimeout = 30 * time.Second + var BaseURL = "https://api.github.com/repos/%s/%s/releases/latest" + var DownloadTimeout = time.Minute * 5 + var UpdateMoveAfterQuit = true + func IsUpdateable(ctx context.Context) error + func Update(ctx context.Context, currentVersion semver.Version) error + type Asset struct + ID int + Name string + URL string + type Release struct + Assets []Asset + Draft bool + ID int + Name string + Prerelease bool + PublishedAt time.Time + TagName string + Version semver.Version + func FetchLatestRelease(ctx context.Context) (Release, error)