Help us shape the future of Go! Take the 2026 Go Developer Survey

version

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "Show version/build information"

Name is the command title.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(info Info) *cli.Command

NewCommand creates a new version command with build information.

func Run

func Run(info Info) error

Run will print version information for the build.

Types

type Info

type Info struct {
	Version    string
	Commit     string
	CommitTime string
	Branch     string
}

Info contains injected build environment information.

Jump to

Keyboard shortcuts

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