updater

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InstallLatest

func InstallLatest(release *Release) error

InstallLatest downloads the latest release binary for the current OS/Arch and replaces the running executable.

Types

type Release

type Release struct {
	TagName string `json:"tag_name"`
	Assets  struct {
		Links []struct {
			Name string `json:"name"`
			URL  string `json:"url"`
		} `json:"links"`
	} `json:"assets"`
}

Release represents a GitLab release

func CheckForUpdate

func CheckForUpdate(currentVersion string) (*Release, error)

CheckForUpdate checks the GitLab API for the latest release. Returns the release if an update is available, otherwise nil.

Jump to

Keyboard shortcuts

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