Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckForUpdates ¶
CheckForUpdates checks if there's a new version available
func ShouldCheckForUpdate ¶
func ShouldCheckForUpdate() bool
ShouldCheckForUpdate determines if it's time to check for updates
Types ¶
type GitHubRelease ¶
type GitHubRelease struct {
TagName string `json:"tag_name"`
Name string `json:"name"`
Body string `json:"body"`
Draft bool `json:"draft"`
Prerelease bool `json:"prerelease"`
Assets []struct {
Name string `json:"name"`
BrowserDownloadURL string `json:"browser_download_url"`
Size int64 `json:"size"`
} `json:"assets"`
PublishedAt time.Time `json:"published_at"`
}
GitHubRelease represents a GitHub release
func GetLatestRelease ¶
func GetLatestRelease(repository string, includePrerelease bool, verbose bool) (*GitHubRelease, error)
GetLatestRelease fetches the latest release from GitHub If includePrerelease is true, it will return the latest release including prereleases
Click to show internal directories.
Click to hide internal directories.