Documentation
¶
Overview ¶
Package buildinfo names the build: version, commit and build time. The release build and the Dockerfile set them with -ldflags; a build without them (go build, go install, go run) reads the Go build info instead (ADR 0034).
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version string Commit string Date string )
Set by -ldflags "-X github.com/getsphericon/sphericon/internal/buildinfo.Version=..." etc.
Functions ¶
func IsRelease ¶
IsRelease reports whether v is a stable release version ("v1.2.3", "1.2.3"): a plain semantic version, not "dev", a commit-derived pseudo-version, a prerelease or one with build metadata. It is the one answer to "is this a release" for the Telemetry report and the Release check (ADR 0032).
Types ¶
Click to show internal directories.
Click to hide internal directories.