Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version represents the program version.
	Version string
	// Branch represents the repository branch name.
	Branch string
	// Revision represents the repository revision hash.
	Revision string
	// BuildDate represents the program build date.
	BuildDate string
	// Compiler represents the program compiler information.
	Compiler = fmt.Sprintf("%s (%s)", runtime.Version(), runtime.Compiler)
)

Functions

func Fprint

func Fprint(w io.Writer)

    Fprint writes the version information into a writer.

    func Print

    func Print()

      Print writes the version information to the standard output.

      Types

      This section is empty.

      Source Files