Documentation
¶
Overview ¶
Package version is the single source of truth for the build version and a best-effort "is a newer release out?" check against the GitHub tags.
Index ¶
Constants ¶
const Repo = "Veyal/interceptor"
Repo is the GitHub owner/name used for the update check.
const Version = "0.2.2"
Version is the baked-in release version — keep it in sync with the git tag.
Variables ¶
This section is empty.
Functions ¶
func CheckLatest ¶
CheckLatest queries GitHub for the highest released tag and reports whether it is newer than the running version. Best-effort: any error (offline, rate limit, etc.) returns ("", false, err) for the caller to ignore quietly.
func String ¶
func String() string
String returns the running version: the module version when installed via `go install …@vX.Y.Z` (authoritative), otherwise the baked-in constant. It deliberately ignores "(devel)" and pseudo-versions (vX.Y.Z-0.<ts>-<hash>) from between-tags local builds, which would otherwise look ugly in the UI/logs.
Types ¶
This section is empty.