selfupdate

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, opts Options) (string, error)

Types

type CheckOptions added in v0.2.1

type CheckOptions struct {
	CurrentVersion string
	Repository     string
	Endpoint       string
	Client         *http.Client
}

type CheckResult added in v0.2.1

type CheckResult struct {
	CurrentVersion  string `json:"currentVersion"`
	LatestVersion   string `json:"latestVersion"`
	UpdateAvailable bool   `json:"updateAvailable"`
	ReleaseURL      string `json:"releaseUrl"`
}

func Check added in v0.2.1

func Check(ctx context.Context, opts CheckOptions) (CheckResult, error)

Check queries only release metadata. It never downloads an archive or changes the current executable.

type Options

type Options struct {
	Version     string
	Repository  string
	Executable  string
	ReleaseBase string
	GOOS        string
	GOARCH      string
	Client      *http.Client
}

Jump to

Keyboard shortcuts

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