Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version string = "1.3.6" Commit string = "unknown" BuildDate string = "unknown" )
Version, Commit, and BuildDate are set via ldflags at build time.
go build -ldflags "-X nself/internal/version.Version=1.0.0 -X nself/internal/version.Commit=abc123 -X nself/internal/version.BuildDate=2026-01-01"
Functions ¶
func NextMinor ¶ added in v1.3.0
NextMinor returns the next minor release version (patch reset to 0) for a "X.Y.Z" version string, e.g. "1.2.7" -> "1.3.0". Used for escape-hatch removal-version messaging such as NSELF_LEGACY_ENV_ORDER (CLI-R18), which is honored for exactly one minor version. Returns v unchanged if it cannot be parsed as three dot-separated integers.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.