version

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2024 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 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.

Jump to

Keyboard shortcuts

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