Documentation
¶
Overview ¶
Package version holds the build-time identity of the ctx binary.
The vars below default to a "dev" identity and are overridden at release build time via -ldflags, e.g.:
go build -ldflags "\ -X github.com/sugihAF/contexo/internal/version.Version=1.3.0 \ -X github.com/sugihAF/contexo/internal/version.Commit=abc1234 \ -X github.com/sugihAF/contexo/internal/version.Date=2026-06-02"
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Version is the semantic version without a leading "v" (e.g. "1.3.0"), // or "dev" for an un-stamped build (`go build`, `go install`). Version = "dev" // Commit is the short git SHA the binary was built from. Commit = "none" // Date is the build date (RFC3339 or YYYY-MM-DD). Date = "unknown" )
Functions ¶
func Full ¶
func Full() string
Full returns a human-readable identity line, e.g. "ctx 1.3.0 (abc1234, 2026-06-02)".
func IsDevBuild ¶
func IsDevBuild() bool
IsDevBuild reports whether this binary was built without release stamping. Self-update and the update nudge both refuse to act on dev builds.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.