version

package
v0.1.0-alpha.41 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package version exposes build metadata for the armada binary.

Release builds inject version, commit, and date through -ldflags -X. Builds produced by `go install` fall back to the module and VCS information that the Go toolchain embeds in the binary.

Index

Constants

View Source
const Name = "armada"

Name is the binary and product name. Keep every user-facing reference to the space name pointing here so a rename touches one line.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

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

Info describes the running binary.

func Get

func Get() Info

Get returns build metadata for the running binary.

func (Info) String

func (i Info) String() string

String returns a single human-readable line.

Jump to

Keyboard shortcuts

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