buildinfo

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package buildinfo reports which build of vexscan is running.

It reads what the Go toolchain already stamps into the binary rather than taking a version from -ldflags, so a plain `go install github.com/cwayne18/vexscan@v0.6.2` self-describes exactly as a release build does. There is nothing to keep in sync and nothing to forget to pass.

Every part is best effort and none of it is invented. A binary built by `go build` from a checkout reports "(devel)" and a dirty tree is marked as such -- those are the honest answers, not gaps to paper over, and a bug report that says "(devel)-dirty" has told the reader something true.

Index

Constants

View Source
const Name = "vexscan"

Name is the tool's own name, so the report descriptor and the --version line spell it the same way.

Variables

This section is empty.

Functions

func Revision

func Revision() string

Revision is the short commit the binary was built from, suffixed "-dirty" when the tree had uncommitted changes. Empty when the build carried no VCS stamp at all, which is what happens inside `go test`.

func Short

func Short() string

Short is the provenance stamp a report carries: "vexscan v0.6.2 (a1b2c3d)", or just "vexscan v0.6.2" when there is no revision left to add.

func String

func String() string

String is the line --version prints: everything a bug report needs on one line, which is the version, the commit, the toolchain and the platform.

vexscan v0.6.2 (a1b2c3d, go1.24.4, darwin/arm64)

func Version

func Version() string

Version is the module version alone, e.g. "v0.6.2", or "(devel)" for a binary built from a checkout.

Types

This section is empty.

Jump to

Keyboard shortcuts

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