Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckResult ¶
type CheckResult struct {
LatestVersion string
CurrentVersion string
UpdateAvailable bool
DownloadURL string
Error error
}
CheckResult represents the result of an update check.
type Checker ¶
type Checker struct {
// contains filtered or unexported fields
}
Checker checks for updates.
func (*Checker) CheckLatestVersion ¶
func (c *Checker) CheckLatestVersion(ctx context.Context, currentVersion string) (*CheckResult, error)
CheckLatestVersion checks for the latest version on GitHub.
Click to show internal directories.
Click to hide internal directories.