release

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package release tells whether a newer release of gist is out and how the running install is updated. It reads nothing from the network: internal/github does.

Index

Constants

View Source
const CheckEvery = 24 * time.Hour

CheckEvery is how long a reading of the releases holds.

View Source
const Page = "https://github.com/babarot/gist/releases"

Page is where the releases are on the web.

Variables

This section is empty.

Functions

func Compare

func Compare(a, b string) (int, error)

Compare compares two versions written as three numbers, with or without a leading v: -1 when a is older than b, 0 when they are the same, 1 when a is newer.

func Due

func Due(checked, now time.Time) bool

Due says the releases are read again at now, after a reading at checked.

func How

func How(exe string) string

How says how the executable at exe, with its links followed, is updated.

func Newer

func Newer(a, b string) bool

Newer says a is a newer version than b. A version that does not parse is never newer, so a tag of another form offers nothing.

func Notes

func Notes(body string) string

Notes is a release's notes as GitHub generated them, cut to what a reader of gist wants: the comment, the "What's Changed" heading and the link to the full changelog go, and "by @user in <pull request URL>" becomes its number.

Types

This section is empty.

Jump to

Keyboard shortcuts

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