version

package
v0.0.0-...-80ccc60 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package version provides build-time version information for Deputy.

The version is set at build time using ldflags:

go build -ldflags "-X github.com/temporalio/deputy/internal/version.Value=v1.0.0"

Usage

Access the current version:

fmt.Printf("Deputy %s\n", version.Value)

The Value variable defaults to "dev" when not set via ldflags, indicating a development build.

Build Integration

The version is typically set by GoReleaser or CI scripts:

# In .goreleaser.yaml
ldflags:
  - -X github.com/temporalio/deputy/internal/version.Value={{.Version}}

CLI Integration

The version command displays this information:

$ deputy version
deputy v1.0.0

Package version provides build version information for Deputy.

Set at build time via ldflags:

go build -ldflags "-X github.com/temporalio/deputy/internal/version.Value=1.0.0"

Index

Constants

This section is empty.

Variables

View Source
var Value = "0.0.0-dev"

Value is the semantic version of Deputy.

Set at build time via ldflags. Defaults to "0.0.0-dev" for local builds. Must start with a digit for SARIF compliance (SARIF2005).

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