update

package
v0.5.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2026 License: MIT Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckForUpdates

func CheckForUpdates(currentVersion, repository string, verbose bool) (bool, string, error)

CheckForUpdates checks if there's a new version available

func ShouldCheckForUpdate

func ShouldCheckForUpdate() bool

ShouldCheckForUpdate determines if it's time to check for updates

func UpdateCheckTime

func UpdateCheckTime()

UpdateCheckTime updates the next check time

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL