version

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package version is the single source of truth for the Readproof version.

Everything that stamps a version into something durable — the evidence bundle's exporter field, the MCP server info, `readproof version` — reads it from here. A record that says "produced by readproof 0.3.1" is only useful if every producer agrees on what 0.3.1 means, and separate literals drift.

Index

Constants

View Source
const Version = "0.3.1"

Version is the released version of this build. Bump it here, and only here, at release time.

Variables

View Source
var Commit string

Commit is the short git SHA this binary was built from. It is empty for an ordinary `go build`/`go test` and set at release time with:

go build -ldflags "-X github.com/fbzz/readproof/internal/version.Commit=$(git rev-parse --short HEAD)" ./cmd/readproof

Keeping it out of Version means the version a bundle records stays reproducible across builds of the same source.

Functions

func String

func String() string

String is the human-facing build identity: "0.3.1", or "0.3.1+a1b2c3d" when the commit was stamped in.

Types

This section is empty.

Jump to

Keyboard shortcuts

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