Documentation
¶
Overview ¶
Package version provides build information for the spectr binary.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Version is the semantic version of the build. Version = "dev" // Commit is the git commit hash of the build. Commit = "unknown" // Date is the timestamp when the binary was built. Date = "unknown" )
Build information variables set via ldflags during compilation. Example: go build -ldflags "-X github.com/connerohnesorge/spectr/internal/version.Version=v0.1.0"
Functions ¶
This section is empty.
Types ¶
type BuildInfo ¶
type BuildInfo struct {
Version string `json:"version"`
Commit string `json:"commit"`
Date string `json:"date"`
}
BuildInfo contains version and build metadata.
func GetBuildInfo ¶
func GetBuildInfo() BuildInfo
GetBuildInfo returns the current build information.
Click to show internal directories.
Click to hide internal directories.