Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Version is the semantic version (e.g., "1.0.0") Version = "dev" // GitCommit is the git commit hash GitCommit = "unknown" // BuildDate is the build date in RFC3339 format BuildDate = "unknown" // GoVersion is the Go version used to build GoVersion = runtime.Version() // Platform is the OS/Arch combination Platform = fmt.Sprintf("%s/%s", runtime.GOOS, runtime.GOARCH) )
Version information. These variables are set at build time using ldflags.
Functions ¶
This section is empty.
Types ¶
type Info ¶
type Info struct {
Version string `json:"version"`
GitCommit string `json:"gitCommit"`
BuildDate string `json:"buildDate"`
GoVersion string `json:"goVersion"`
Platform string `json:"platform"`
}
Info represents version information
Click to show internal directories.
Click to hide internal directories.