Documentation
¶
Overview ¶
Package version exposes build metadata for the StackSentry binary.
Release builds inject values through -ldflags, for example:
go build -ldflags "-X github.com/6-SlX-6/stacksentry/internal/version.Version=0.1.0"
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Version is the semantic version of the scanner without a leading "v". Version = "0.1.0" // Commit is the source revision the binary was built from. Commit = "" // Date is the UTC build timestamp in RFC 3339 format. Date = "" )
These variables are overridden at link time by release builds.
Functions ¶
This section is empty.
Types ¶
type Info ¶
type Info struct {
Version string `json:"version"`
Commit string `json:"commit,omitempty"`
Date string `json:"date,omitempty"`
GoVersion string `json:"go_version"`
Platform string `json:"platform"`
}
Info describes the running binary.
Click to show internal directories.
Click to hide internal directories.