Documentation
¶
Overview ¶
Package release looks up published jcode releases on GitHub and compares build versions. It is shared by `jcode update` and the web settings page.
Index ¶
Constants ¶
View Source
const DefaultTimeout = 10 * time.Second
DefaultTimeout bounds a latest-release lookup when the caller's context has no deadline of its own.
View Source
const LatestURL = "https://api.github.com/repos/cnjack/jcode/releases/latest"
LatestURL is the GitHub API endpoint for the newest non-prerelease release.
View Source
const ReleasesURL = "https://github.com/cnjack/jcode/releases"
ReleasesURL is the public release listing; TagURL links to one release.
Variables ¶
This section is empty.
Functions ¶
func Compare ¶
Compare orders two semantic versions ("v1.2.3", "1.2.3-rc.1", ...). It returns -1, 0, or 1 and ok=false when either side is not a valid version (e.g. an unstamped dev build), in which case callers should not claim an update relationship.
Types ¶
Click to show internal directories.
Click to hide internal directories.