update

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrTokenNotFound = fmt.Errorf("github token not found")

Functions

func Update

func Update(ctx context.Context) error

Types

type VersionInfo added in v0.0.12

type VersionInfo struct {
	Current  string
	Latest   string
	UpToDate bool
}

VersionInfo holds the result of a version check against the latest release.

func CheckLatestVersion added in v0.0.12

func CheckLatestVersion(ctx context.Context) (VersionInfo, error)

CheckLatestVersion fetches the latest GitHub release and compares it with the running version. It does not download or install anything.

Jump to

Keyboard shortcuts

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