upgrade

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Managed

func Managed(path string) string

func Replace

func Replace(target, candidate string) error

Types

type Asset

type Asset struct {
	Name               string `json:"name"`
	BrowserDownloadURL string `json:"browser_download_url"`
}

type Client

type Client struct {
	BaseURL      string
	HTTP         *http.Client
	GOOS, GOARCH string
}

func (Client) Download

func (c Client) Download(r Release, dest string) error

func (Client) Latest

func (c Client) Latest() (Release, error)

type Release

type Release struct {
	TagName string  `json:"tag_name"`
	Assets  []Asset `json:"assets"`
}

Jump to

Keyboard shortcuts

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