buildinfo

package
v0.5.1 Latest Latest
Warning

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

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

Documentation

Overview

Package buildinfo exposes metadata injected into the CLI binary at build time.

Index

Constants

This section is empty.

Variables

View Source
var (
	AppName        string
	BuildDate      string
	GitCommit      string
	GitBranch      string
	CLIVersion     string
	CommitUnixTime string
	ReleaseVersion string
)

Functions

This section is empty.

Types

type Info

type Info struct {
	AppName        string `json:"appname"`
	BuildDate      string `json:"build_date"`
	GitCommit      string `json:"git_commit"`
	GitBranch      string `json:"git_branch"`
	GoVersion      string `json:"go_version"`
	Compiler       string `json:"compiler"`
	Platform       string `json:"platform"`
	CLIVersion     string `json:"cli_version"`
	CommitUnixTime int64  `json:"commit_unix_time"`
	ReleaseVersion string `json:"release_version"`
}

Info is the stable JSON representation printed by grpc-kit-cli version.

func Get

func Get() Info

Get returns build metadata with deterministic development-build defaults.

Jump to

Keyboard shortcuts

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