version

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package version holds the build identity stamped into the binary at link time. It lives here rather than in package main so that code below the entry point can read it: the proxy sends its version to Temporal Cloud on every outbound request, and nothing on that path can import main.

The values are plain variables because the linker's -X flag can only write to one, not to a constant. For the same reason each is initialized with a string literal: -X silently does nothing to a variable whose initializer calls a function, so a computed default would leave the flag with no effect. They are never assigned at run time, so reading them concurrently is safe.

A build that passes no flags keeps the defaults below, which is what a developer build reports.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version is the release the binary was built from, or "local" when it was
	// built without the release flags.
	Version string = "local"

	// SHA is the git commit the binary was built from.
	SHA string = "unknown"

	// BuildTime is when the binary was built, in RFC 3339.
	BuildTime string = "unknown"
)

NB: These are set at build time by the CI/CD process. See .goreleaser.yaml.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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