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

version

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package version holds the build metadata stamped into release binaries.

Index

Constants

This section is empty.

Variables

View Source
var (
	Version = "dev"
	Commit  = "none"
	Date    = "unknown"
)

Populated at build time via -ldflags by .goreleaser.yaml for releases and by flake.nix for source builds. A build that stamps nothing falls back to runtime/debug.ReadBuildInfo, so `go install pkg@version` still reports the module version rather than "dev". A build with neither keeps these defaults, which is how `ripen version` says so rather than inventing one.

Functions

func String

func String() string

String renders the build metadata as a single human-readable line.

Types

This section is empty.

Jump to

Keyboard shortcuts

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