buildinfo

package
v0.0.0-...-93a508a Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2023 License: Apache-2.0 Imports: 0 Imported by: 9

Documentation

Overview

Package buildinfo holds global vars set at build time to provide information about the build. This package SHOULD NOT import other packages -- to avoid dependency cycles.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Date is the date the binary was built.
	// Set by go build -ldflags "-X 'github.com/vmware-tanzu/tanzu-framework/util/buildinfo.Date=...'"
	Date string

	// SHA is the git commit SHA the binary was built with.
	// Set by go build -ldflags "-X 'github.com/vmware-tanzu/tanzu-framework/util/buildinfo.SHA=...'"
	SHA string

	// Version is the version the binary was built with.
	// Set by go build -ldflags "-X 'github.com/vmware-tanzu/tanzu-framework/util/buildinfo.Version=...'"
	Version string
)
View Source
var IsOfficialBuild string

IsOfficialBuild is the flag that gets set to True if it is an official build being released. Set by go build -ldflags "-X" flag

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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