Documentation ¶
Overview ¶
Package version powers the versioning of opensource-insight-exporter.
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 ¶
func AppVersion ¶
func AppVersion(_ *cli.Context) error
Types ¶
type BuildInfo ¶
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"` }
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.