updater

package
v0.2.1 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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchReleaseNotes

func FetchReleaseNotes(version string) (string, string, error)

FetchReleaseNotes fetches release notes for a specific version (or latest if empty)

func IsNewer

func IsNewer(latest, current string) bool

IsNewer returns true if latest version is newer than current

Types

type UpdateInfo

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

UpdateInfo holds information about available updates

func CheckLatestVersion

func CheckLatestVersion(currentVersion string) (*UpdateInfo, error)

CheckLatestVersion checks GitHub for the latest release and compares with current version

Jump to

Keyboard shortcuts

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