buildinfo

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package buildinfo reports what this binary is.

Every node advertises its version when it joins, so an operator can see at a glance that one agent in a fleet is running last week's build — a genuinely common cause of results that make no sense.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Version

func Version() string

Version returns just the version string.

Types

type Info

type Info struct {
	Version   string `json:"version"`
	Commit    string `json:"commit"`
	BuildDate string `json:"buildDate"`
	GoVersion string `json:"goVersion"`
	Platform  string `json:"platform"`
	Dirty     bool   `json:"dirty"`
}

Info describes the running binary.

func Get

func Get() Info

Get returns the build information.

func (Info) String

func (i Info) String() string

String renders a one-line summary for `--version` output.

Jump to

Keyboard shortcuts

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