updates

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2025 License: AGPL-3.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckForUpdate

func CheckForUpdate(owner, repo, currentVersion string) error

CheckForUpdate checks GitHub for a newer version and prints an update banner if found

Types

type GitHubRelease

type GitHubRelease struct {
	TagName string `json:"tag_name"`
	Name    string `json:"name"`
	HTMLURL string `json:"html_url"`
}

GitHubRelease represents the GitHub API response for a release

type Version

type Version struct {
	Major int
	Minor int
	Patch int
}

Version represents a semantic version

func (Version) String

func (v Version) String() string

String returns the version as a string

Jump to

Keyboard shortcuts

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