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

selfupdate

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 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 RepairDesktopRuntimeIfNeeded added in v0.7.5

func RepairDesktopRuntimeIfNeeded(context.Context, io.Writer) 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"`
	DesktopCurrentVersion  string `json:"desktop_current_version,omitempty"`
	UpdateAvailable        bool   `json:"update_available"`
	DesktopUpdateAvailable bool   `json:"desktop_update_available,omitempty"`
	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