versioncheck

package
v0.6.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

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

Checker performs a background version check against GitHub releases.

func New

func New(currentVersion string) *Checker

New creates a Checker and starts the background check immediately.

func (*Checker) Result

func (c *Checker) Result() *Result

Result returns the check result. It blocks briefly (up to the HTTP timeout) waiting for the background goroutine to finish. Returns nil if no update is available or the check could not be completed.

type Result

type Result struct {
	Available      bool
	LatestVersion  string
	CurrentVersion string
}

Result holds the outcome of a background version check.

Jump to

Keyboard shortcuts

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