version

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version = "local"
	Commit  = ""
	Branch  = ""
	BuiltAt = ""
	Builder = ""
)

Version information. These will be filled in by the compiler.

Functions

func Command

func Command() *cobra.Command

Command creates version command

Types

type Info

type Info struct {
	Commit  string
	Version string
	Branch  string
	BuiltAt string
	Builder string
}

Info holds build information

func Get

func Get() (Info, error)

Get creates an initialized Info object

Jump to

Keyboard shortcuts

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