Documentation ¶
Overview ¶
Package version powers the versioning of terragen.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Version specifies the version of the application and cannot be changed by end user. Version string // Env tells end user that what variant (here we use the name of the git branch to make it simple) // of application is he using. Env string // BuildDate of the app. BuildDate string // GoVersion represents golang version used. GoVersion string // Platform is the combination of OS and Architecture for which the binary is built for. Platform string // Revision represents the git revision used to build the current version of app. Revision string )
Functions ¶
This section is empty.
Types ¶
type BuildInfo ¶
type BuildInfo struct { Version string `json:"version,omitempty"` Revision string `json:"revision,omitempty"` Environment string `json:"environment,omitempty"` BuildDate string `json:"build-date,omitempty"` GoVersion string `json:"go-version,omitempty"` Platform string `json:"platform,omitempty"` }
BuildInfo represents version of utility.
func GetBuildInfo ¶
func GetBuildInfo() BuildInfo
GetBuildInfo return the version and other build info of the application.
Click to show internal directories.
Click to hide internal directories.