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 string GoVersion string Platform string Revision string )
Functions ¶
This section is empty.
Types ¶
type BuildInfo ¶ added in v0.1.0
type BuildInfo struct { Version string `json:"version,omitempty" yaml:"version,omitempty"` Revision string `json:"revision,omitempty" yaml:"revision,omitempty"` Environment string `json:"environment,omitempty" yaml:"environment,omitempty"` BuildDate string `json:"buildDate,omitempty" yaml:"buildDate,omitempty"` GoVersion string `json:"goVersion,omitempty" yaml:"goVersion,omitempty"` Platform string `json:"platform,omitempty" yaml:"platform,omitempty"` }
func GetBuildInfo ¶ added in v0.1.0
func GetBuildInfo() BuildInfo
GetBuildInfo return the version and other build info of the application.
Click to show internal directories.
Click to hide internal directories.