updater

package
v2.3.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanupStaleOld

func CleanupStaleOld()

CleanupStaleOld is a no-op on Unix. Unix's os.Rename can replace a running executable in place, so the ".old" staging file created by the Windows updater does not exist here.

func SelfUpdate

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

SelfUpdate downloads the latest binary from GitHub Releases, verifies its checksum, and replaces the current binary.

Types

type Options

type Options struct {
	BaseURL string // Override release base URL (for testing)
}

Options configures the self-update behavior. Use defaults for production.

Jump to

Keyboard shortcuts

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