pkg

package
v0.0.0-...-3b23420 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// BuildDate is the timestamp for when the build happened.
	BuildDate string

	// Commit is the commit hash at which the binary was built.
	Commit string

	// Tag is the tag name at which the binary was built.
	Tag string

	// GoVersion is the version of Go used to build the binary.
	GoVersion string

	// Version is the canonical version string for the binary.
	Version string
)

Functions

This section is empty.

Types

type BinVersion

type BinVersion struct {
	Arch       string
	BuildDate  string
	Commit     string
	Tag        string
	GoCompiler string
	GoVersion  string
	OS         string
	Version    string
}

BinVersion describes the version of the binary for the CLI.

This should be populated via build-time args passed in for the corresponding variables.

func GetVersion

func GetVersion() *BinVersion

GetVersion gets the version information for the CLI. It builds a BinVersion using the variables that should be set as build-time arguments.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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