buildinfo

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package buildinfo exposes metadata embedded into the galaxio binary.

Index

Constants

This section is empty.

Variables

View Source
var (
	Version = "dev"
	Commit  = "none"
	Date    = "unknown"
)

These values are overwritten by release builds through -ldflags.

Functions

This section is empty.

Types

type Info

type Info struct {
	Version string `json:"version"`
	Commit  string `json:"commit"`
	Date    string `json:"date"`
}

Info contains version metadata for the running binary.

func Current

func Current() Info

Current returns the build metadata compiled into the binary.

func (Info) CleanVersion

func (i Info) CleanVersion() string

CleanVersion returns Version without the common git tag prefix.

func (Info) String

func (i Info) String() string

String formats build metadata for human-readable CLI output.

Jump to

Keyboard shortcuts

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