update

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckResult

type CheckResult struct {
	LatestVersion   string
	CurrentVersion  string
	UpdateAvailable bool
	DownloadURL     string
	Error           error
}

CheckResult represents the result of an update check.

type Checker

type Checker struct {
	// contains filtered or unexported fields
}

Checker checks for updates.

func NewChecker

func NewChecker() *Checker

NewChecker creates a new update checker.

func (*Checker) CheckLatestVersion

func (c *Checker) CheckLatestVersion(ctx context.Context, currentVersion string) (*CheckResult, error)

CheckLatestVersion checks for the latest version on GitHub.

Jump to

Keyboard shortcuts

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