version

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = "promutil"
)

Variables

View Source
var (
	// Version is the version number of the program.
	Version string

	// Revision is the git revision that program was built from.
	Revision string

	// Branch is the git branch that program was built from.
	Branch string

	// BuildUser is the user that built program.
	BuildUser string

	// BuildHost is the host that built program.
	BuildHost string

	// BuildDate is the date that program was built.
	BuildDate string
)

Functions

func Print

func Print() string

Print formats the version info as a string.

Types

type Info added in v0.0.3

type Info struct {
	Version   string
	Revision  string
	Branch    string
	BuildUser string
	BuildDate string
	GoVersion string
}

func NewInfo

func NewInfo() Info

Jump to

Keyboard shortcuts

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