update

package
v1.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// RepoURL is the public project page.
	RepoURL = "https://github.com/Foxemsx/riptide"
	// ReleasesURL is the releases list page.
	ReleasesURL = "https://github.com/Foxemsx/riptide/releases"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	Current         string
	Latest          string
	UpdateAvailable bool
	// OpenURL is where a click should go (release page or repo).
	OpenURL string
	Err     error
}

Result is the outcome of a non-blocking update check.

func Check

func Check(ctx context.Context, current string) Result

Check queries GitHub for the latest release and compares it to current. Safe to call with a short-lived context; never panics.

Jump to

Keyboard shortcuts

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