version

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2023 License: MIT Imports: 1 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

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.

Jump to

Keyboard shortcuts

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