update

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyUpdate

func ApplyUpdate() error

ApplyUpdate downloads and installs the previously detected update. CheckForUpdate must be called first.

func IsSemver added in v0.1.3

func IsSemver(v string) bool

IsSemver returns true if the version string is valid semver (with or without v prefix).

Types

type UpdateInfo

type UpdateInfo struct {
	CurrentVersion string
	LatestVersion  string
	IsNewer        bool
	IsPreRelease   bool
	ReleaseNotes   string
}

UpdateInfo describes an available update.

func CheckForUpdate

func CheckForUpdate(currentVersion string, includePre bool) (*UpdateInfo, error)

CheckForUpdate queries GitHub releases for a newer version. Returns nil info if already up to date.

Jump to

Keyboard shortcuts

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