version

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package version is the single place binaries learn which release they are.

The number lives in the VERSION file next to this package and is embedded at build time, so `go build`, `go install` and the Docker image all agree without build arguments. scripts/check-versions.sh keeps it in step with the Python SDK, dashboard and site versions.

Index

Constants

This section is empty.

Variables

View Source
var Commit string

Commit can be set at build time (-ldflags "-X .../internal/version.Commit=abc123") to override the revision Go records from version control.

Functions

func Revision

func Revision() string

Revision returns the short commit the binary was built from, or "" when the build carries none (for example a Docker build without .git).

func String

func String() string

String renders "0.4.3" or "0.4.3 (abc1234)".

func Version

func Version() string

Version is the release number, for example "0.4.3".

Types

This section is empty.

Jump to

Keyboard shortcuts

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