updater

package
v2026.602.4 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Install

func Install(ctx context.Context, tag string, progress io.Writer) error

func IsNewerRelease

func IsNewerRelease(latestTag, current string) bool

func ReleaseAssetName

func ReleaseAssetName(tag string) (string, error)

func SetLatestReleaseAPIURL

func SetLatestReleaseAPIURL(url string) func()

Types

type CheckResult

type CheckResult struct {
	Current   string
	LatestTag string
	Newer     bool
	Err       error
}

func Check

func Check(ctx context.Context, currentVersion string) CheckResult

func (CheckResult) Notice

func (r CheckResult) Notice() *Notice

type Notice

type Notice struct {
	Current string
	Latest  string
}

Jump to

Keyboard shortcuts

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