version

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package version exposes the build version. Kept small so any package can import it without dependency churn.

Index

Constants

View Source
const Current = "0.3.0"

Current is the human-readable release label. Bump on every meaningful shipped change. Set to a `-dev` suffix between releases.

Variables

This section is empty.

Functions

func Commit

func Commit() string

Commit returns the 7-char short SHA the binary was built from, or "" if VCS info isn't available (e.g. `go run`, tarball build).

func CommitTime

func CommitTime() string

CommitTime returns the RFC3339 timestamp of the build commit, or "".

func Dirty

func Dirty() bool

Dirty reports whether the working tree had uncommitted changes when the binary was built.

func Full

func Full() string

Full renders a human-readable version string. Falls back to plain Current when no build info is available, so `go run` and tarball builds don't print misleading parens.

"0.1.0"                    — no VCS info available
"0.1.0 (e546e47)"          — clean build from a checkout
"0.1.0 (e546e47, dirty)"   — built with uncommitted changes

Types

This section is empty.

Jump to

Keyboard shortcuts

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