version

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 24, 2026 License: MIT Imports: 8 Imported by: 0

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

View Source
const Repo = "Veyal/interceptor"

Repo is the GitHub owner/name used for the update check.

View Source
const Version = "0.5.0"

Version is the baked-in release version — keep it in sync with the git tag.

Variables

This section is empty.

Functions

func CheckLatest

func CheckLatest(ctx context.Context) (latest string, newer bool, err error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL