versioncheck

package
v0.82.2 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const LatestGiVersionURL = "https://api.github.com/repos/nowa/gi/releases/latest"
View Source
const LatestPiVersionURL = LatestGiVersionURL

Variables

This section is empty.

Functions

func CheckForNewGiVersion

func CheckForNewGiVersion(currentVersion string, options Options) (string, bool)

func CheckForNewPiVersion

func CheckForNewPiVersion(currentVersion string, options Options) (string, bool)

func ComparePackageVersions

func ComparePackageVersions(leftVersion, rightVersion string) (int, bool)

func GetGiUserAgent

func GetGiUserAgent(version string) string

func GetLatestGiVersion

func GetLatestGiVersion(currentVersion string, options Options) (string, bool)

func GetLatestPiVersion

func GetLatestPiVersion(currentVersion string, options Options) (string, bool)

func GetPiUserAgent

func GetPiUserAgent(version string) string

func IsNewerPackageVersion

func IsNewerPackageVersion(candidateVersion, currentVersion string) bool

Types

type LatestGiRelease

type LatestGiRelease struct {
	Version     string
	PackageName string
}

func GetLatestGiRelease

func GetLatestGiRelease(currentVersion string, options Options) (LatestGiRelease, bool)

type LatestPiRelease

type LatestPiRelease = LatestGiRelease

func GetLatestPiRelease

func GetLatestPiRelease(currentVersion string, options Options) (LatestPiRelease, bool)

type Options

type Options struct {
	URL        string
	Timeout    time.Duration
	HTTPClient *http.Client
	Skip       bool
	Offline    bool
}

Jump to

Keyboard shortcuts

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