buildinfo

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package buildinfo exposes the identity embedded in a multirunner binary.

Index

Constants

View Source
const (

	// VersionVariable and CommitVariable are the canonical linker variable paths.
	VersionVariable = "github.com/GerardSmit/multirunner/internal/buildinfo.Version"
	CommitVariable  = "github.com/GerardSmit/multirunner/internal/buildinfo.Commit"
)

Variables

View Source
var (
	Version = defaultVersion
	Commit  = unknownCommit
)

Version and Commit are set by release builds using the Go linker's -X flag.

Functions

This section is empty.

Types

type Info

type Info struct {
	Version string
	Commit  string
}

Info identifies one multirunner build.

func Current

func Current() Info

Current returns the linked build identity.

func (Info) String

func (i Info) String() string

String formats the build identity for command-line output.

Jump to

Keyboard shortcuts

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