version

package
v0.0.0-...-212369e Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FprintVersion

func FprintVersion(w io.Writer)

FprintVersion outputs the version string to the writer, in the following format, followed by a newline:

<cmd> <project> <version>

For example, a binary "registry" built from github.com/distribution/distribution with version "v2.0" would print the following:

registry github.com/distribution/distribution v2.0

func Package

func Package() string

Package returns the overall, canonical project import path under which the package was built.

func PrintVersion

func PrintVersion()

PrintVersion outputs the version information, from Fprint, to stdout.

func Revision

func Revision() string

Revision returns the VCS (e.g. git) revision being used to build the program at linking time.

func Version

func Version() string

Version returns returns the module version the running binary was built from.

Types

This section is empty.

Jump to

Keyboard shortcuts

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