version

package
v0.229.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package version exposes build-time metadata baked into the binary at link time via `-ldflags="-X ..."`. The release pipeline (.goreleaser.yaml) and `make build` both populate these from goreleaser's template context and `git describe`/`git rev-parse` respectively; a bare `go build ./...` keeps the defaults below so the binary always reports something.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version is the human-readable release version (e.g. "v1.2.3" from a
	// goreleaser build, "v1.2.3-4-gabc1234-dirty" from `make build`,
	// "dev" when neither is in effect).
	Version = "dev"

	// Commit is the short git SHA the binary was built from.
	Commit = "none"

	// Date is the RFC3339 UTC timestamp of the build.
	Date = "unknown"
)

Functions

func String

func String() string

String renders the metadata in the conventional "<name> <version> (<commit>, <date>)" shape used by `auth0-mock -version` and the startup log line.

Types

This section is empty.

Jump to

Keyboard shortcuts

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