Documentation
¶
Overview ¶
Package update provides automatic update functionality for GitHubby
Index ¶
Constants ¶
View Source
const ( // RepoOwner is the GitHub repository owner RepoOwner = "Didstopia" // RepoName is the GitHub repository name RepoName = "githubby" )
Variables ¶
This section is empty.
Functions ¶
func FormatUpdateNotification ¶
FormatUpdateNotification returns a formatted string for the update notification
func GetPlatform ¶
func GetPlatform() string
GetPlatform returns the current platform string (os/arch)
Types ¶
type Result ¶
type Result struct {
// CurrentVersion is the currently running version
CurrentVersion string
// LatestVersion is the latest available version
LatestVersion string
// Available indicates if an update is available
Available bool
// ReleaseURL is the URL to the release page
ReleaseURL string
// ReleaseNotes contains the release notes (if available)
ReleaseNotes string
}
Result contains information about an available update
func CheckForUpdate ¶
CheckForUpdate is a convenience function that creates an Updater and checks for updates
type Updater ¶
type Updater struct {
// contains filtered or unexported fields
}
Updater handles checking and performing updates
func NewUpdater ¶
NewUpdater creates a new Updater instance
func (*Updater) CheckForUpdate ¶
CheckForUpdate checks if a new version is available
Click to show internal directories.
Click to hide internal directories.