Discover Packages
github.com/ysya/runscaler
internal
versioncheck
package
Version:
v0.2.27
Opens a new window with list of versions in this module.
Published: Jun 26, 2026
License: MIT
Opens a new window with license information.
Imports: 14
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
ChecksumURL returns the checksums.txt URL for a given version.
DownloadURL returns the archive download URL for a given version/os/arch.
IsNewer reports whether remote is a different (presumably newer) version
than local. For "dev" builds, always returns true.
Update downloads the given release version, verifies its checksum, and
atomically replaces the running binary. destPath is the path to replace
(usually the result of os.Executable()).
type ReleaseInfo struct {
TagName string `json:"tag_name"`
HTMLURL string `json:"html_url"`
}
ReleaseInfo holds metadata about a GitHub release.
Latest queries the GitHub releases API for the latest release.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.