version

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2021 License: MIT Imports: 4 Imported by: 0

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

func AppVersion

func AppVersion(c *cli.Context) error

Types

type BuildInfo

type BuildInfo struct {
	Version     string
	Revision    string
	Environment string
	BuildDate   string
	GoVersion   string
	Platform    string
}

func GetBuildInfo

func GetBuildInfo() BuildInfo

GetBuildInfo return the version and other build info of the application.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL