version

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Overview

Package version carries the build identity of the binary.

Every value here is injected at link time via -ldflags: by the Makefile for a local build, and by .goreleaser.yaml for an official release artefact. The defaults are deliberately not real version numbers: a binary reporting "dev" is one built outside either pipeline, and that should be visible rather than indistinguishable from a release.

Index

Constants

View Source
const Untagged = "dev"

Untagged is the Version of a binary built outside the Makefile and .goreleaser.yaml pipelines — neither pipeline can produce it, so a binary reporting it has no release tag to compare itself against.

Variables

View Source
var (
	// Version is the release version, from `git describe`.
	Version = Untagged
	// Commit is the short commit hash the binary was built from.
	Commit = "none"
	// Date is the RFC3339 UTC build timestamp.
	Date = "unknown"
)

Functions

func String

func String() string

String renders the three values as a single line for `wake --version`.

Types

This section is empty.

Jump to

Keyboard shortcuts

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