version

package
v0.1.0-proto2f Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2026 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GAPIVersion      = "dev"
	GoDDKVersion     = "dev"
	PythonDDKVersion = "dev"
	BuildTag         = "dev"
	SchemaHash       = "unknown"
	Commit           = "unknown"
	Date             = "unknown"
	BuiltBy          = "unknown"
)

Injected at build time via -ldflags

Functions

func BinaryVersion

func BinaryVersion() string

BinaryVersion returns the registered version string for the current binary.

func SetBinaryNameAndVersion

func SetBinaryNameAndVersion(name, version string)

SetBinaryNameAndVersion lets a binary like gapictl override the top-level label

func SetBuildMetadata

func SetBuildMetadata(overrides Info)

SetBuildMetadata lets downstream components override specific build details

func Summary

func Summary() string

Summary prints a single version block, merging binary and GAPI info

Types

type Info

type Info struct {
	Name      string
	Version   string
	Commit    string
	BuildDate string
	BuiltBy   string
	GoVersion string
	Platform  string
}

Jump to

Keyboard shortcuts

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