versioncheck

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNewer

func IsNewer(local, remote string) bool

IsNewer reports whether remote is a different (presumably newer) version than local. For "dev" builds, always returns true.

Types

type ReleaseInfo

type ReleaseInfo struct {
	TagName string `json:"tag_name"`
	HTMLURL string `json:"html_url"`
}

ReleaseInfo holds metadata about a GitHub release.

func Latest

func Latest(ctx context.Context) (*ReleaseInfo, error)

Latest queries the GitHub releases API for the latest release.

Jump to

Keyboard shortcuts

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