version

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version is the CLI version
	Version string = "unknown"

	// GitCommit is the git commit ID
	GitCommit string = "unknown"

	// BuildDate is the date when the binary was built
	BuildDate string = "unknown"
)

Functions

func GetInfoStr

func GetInfoStr() string

GetInfoStr returns versioning information in a string format.

Types

type Info

type Info struct {
	Version   string `json:"version"`
	GitCommit string `json:"gitCommit"`
	BuildDate string `json:"buildDate"`
	GoVersion string `json:"goVersion"`
	Compiler  string `json:"compiler"`
	Platform  string `json:"platform"`
}

Info contains versioning information.

func GetInfo

func GetInfo() *Info

GetInfo returns versioning information.

Jump to

Keyboard shortcuts

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