Documentation
¶
Overview ¶
Package version provides build-time version information for Tinct. Version information is injected at build time using ldflags.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Version is the semantic version of the application. // Injected at build time via: -ldflags "-X github.com/jmylchreest/tinct/internal/version.Version=x.y.z". Version = "0.0.0" // Commit is the git commit hash of the build. // Injected at build time via: -ldflags "-X github.com/jmylchreest/tinct/internal/version.Commit=$(git rev-parse HEAD)". Commit = "unknown" // Date is the build date in RFC3339 format. // Injected at build time via: -ldflags "-X github.com/jmylchreest/tinct/internal/version.Date=$(date -u +%Y-%m-%dT%H:%M:%SZ)". Date = "unknown" // TelemetryAppKey is the statsfactory API key for telemetry. // Injected at build time via: -ldflags "-X github.com/jmylchreest/tinct/internal/version.TelemetryAppKey=sf_live_...". // Can be overridden at runtime by the TINCT_TELEMETRY_APP_KEY environment variable. TelemetryAppKey = "" // TelemetryServerURL is the statsfactory server URL for telemetry. // Injected at build time via: -ldflags "-X github.com/jmylchreest/tinct/internal/version.TelemetryServerURL=https://...". // Can be overridden at runtime by the TINCT_TELEMETRY_SERVER_URL environment variable. TelemetryServerURL = "" // GoVersion is the Go version used to build the binary. GoVersion = runtime.Version() )
Functions ¶
func GetTelemetryAppKey ¶ added in v0.2.0
func GetTelemetryAppKey() string
GetTelemetryAppKey returns the telemetry app key, preferring the environment variable TINCT_TELEMETRY_APP_KEY over the build-time injected value.
func GetTelemetryServerURL ¶ added in v0.2.0
func GetTelemetryServerURL() string
GetTelemetryServerURL returns the telemetry server URL, preferring the environment variable TINCT_TELEMETRY_SERVER_URL over the build-time injected value.
Types ¶
Click to show internal directories.
Click to hide internal directories.