app

package
v0.27.5-rc.1 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCannotCheckNewRelease = fmt.Errorf("cannot check for new release")

Functions

func CheckNewRelease added in v0.27.3

func CheckNewRelease(bv string) (string, error)

CheckNewRelease checks if there is a new release available.

Types

type Release

type Release struct {
	//nolint:tagliatelle // GitHub response's field has snake case.
	URL     string `json:"html_url"`
	Version string `json:"name"`
}

func GetLatestRelease

func GetLatestRelease() (Release, error)

GetLatestRelease fetches the latest release from the GitHub API.

Jump to

Keyboard shortcuts

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