Documentation
¶
Overview ¶
Package buildinfo provides build metadata and update checking for quad-ops.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Commit is the VCS revision hash. Commit = "none" // Date is the VCS commit timestamp. Date = "unknown" // GoVersion is the Go toolchain version used to build the binary. GoVersion = "unknown" // Version is the release version, set via ldflags by goreleaser. Version = "dev" )
Functions ¶
Types ¶
type UpdateStatus ¶
UpdateStatus represents the result of an update check.
func CheckForUpdates ¶
func CheckForUpdates(ctx context.Context) (*UpdateStatus, error)
CheckForUpdates checks GitHub for a newer release. Returns an UpdateStatus and any error encountered.
Click to show internal directories.
Click to hide internal directories.