buildinfo

package
v0.2.21 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package buildinfo exposes release metadata compiled into the binary.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version is the release version injected at build time.
	Version = "dev"
	// Commit is the source revision injected at build time.
	Commit = ""
	// BuildDate is the build timestamp injected at build time.
	BuildDate = ""
)

Functions

This section is empty.

Types

type Info

type Info struct {
	Version   string `json:"version"`
	Commit    string `json:"commit"`
	BuildDate string `json:"buildDate"`
	Mode      string `json:"mode"`
}

Info describes the compiled application version.

func Get

func Get() Info

Get returns the current build metadata, falling back to Go build info.

Jump to

Keyboard shortcuts

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