version

package
v0.7.6 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package version holds muster's build-time version stamp. It exists so exactly one pair of variables gets the -ldflags -X treatment — cmd/muster, the justfile, and .github/workflows/release.yml all target github.com/schuettc/muster/internal/version.{version,commit} rather than three copies scattered across main packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Commit

func Commit() string

Commit returns the stamped short commit hash ("none" if unstamped).

func Line

func Line() string

Line formats muster's canonical one-line version banner, e.g. "muster 0.6.0 (a1b2c3d)". This is the single formatting function so both `muster version` and `muster --version` render identically.

func Version

func Version() string

Version returns the stamped version ("dev" if the binary wasn't built with the ldflags above).

Types

This section is empty.

Jump to

Keyboard shortcuts

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