Help us shape the future of Go! Take the 2026 Go Developer Survey

selfupdate

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleInternalCommand

func HandleInternalCommand(context.Context, []string) (bool, error)

func Run

func Run(ctx context.Context, output io.Writer) error

Types

type CheckResult added in v0.7.0

type CheckResult struct {
	CurrentVersion  string `json:"current_version"`
	LatestVersion   string `json:"latest_version"`
	UpdateAvailable bool   `json:"update_available"`
	Message         string `json:"message"`
}

func Check added in v0.7.0

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

Jump to

Keyboard shortcuts

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