Documentation
¶
Overview ¶
Package version provides build-time version information. These variables are set via ldflags at build time.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Version is the semantic version (e.g., "1.0.0") Version = "dev" // Commit is the git commit SHA Commit = "none" // Date is the build date in RFC3339 format Date = "unknown" )
Functions ¶
Types ¶
type SDKProvenance ¶
type SDKProvenance struct {
SDK struct {
Module string `json:"module"`
Version string `json:"version"`
Revision string `json:"revision"`
UpdatedAt string `json:"updated_at"`
} `json:"sdk"`
API struct {
Repo string `json:"repo"`
Revision string `json:"revision"`
SyncedAt string `json:"synced_at"`
} `json:"api"`
}
SDKProvenance contains SDK and API revision information embedded at build time.
func GetSDKProvenance ¶
func GetSDKProvenance() *SDKProvenance
GetSDKProvenance returns the embedded SDK provenance information. Returns nil if the provenance data cannot be parsed.
Click to show internal directories.
Click to hide internal directories.