Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

tazuna version

Outputs the version information embedded in the binary.

tazuna version
tazuna --version

Both forms are equivalent.

Behavior

Outputs a single line in the following form and exits.

tazuna <version> (commit <commit>, built <date>, <os>/<arch>)
  • <version> — the release tag. dev for local builds.
  • <commit> — the commit hash at release time. none when not injected.
  • <date> — the build timestamp at release time. unknown when not injected.
  • <os>/<arch>runtime.GOOS / runtime.GOARCH.

<version> / <commit> / <date> are injected at release time by goreleaser. For local builds via go install / go run, they are not injected, so the default values appear.

Flag

No specific flags. No arguments are accepted.

Examples

tazuna version
tazuna --version