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.
Click to show internal directories.
Click to hide internal directories.