Documentation
¶
Overview ¶
Package metadata provides a data structure to hold build metadata.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metadata ¶
type Metadata struct {
// contains filtered or unexported fields
}
Metadata contains structured metadata for the build. It can hold arbitrary key-value pairs, but some keys are well-known:
- num_cpu: number of CPUs
- goos: the value of Go's GOOS constant
- goarch: the value of Go's GOARCH constant
func (Metadata) Get ¶
Get returns the value for the given key. If the key is not set, it returns the empty string.
func (Metadata) SortedKeys ¶
SortedKeys returns a sorted list of all available keys in the metadata.
Click to show internal directories.
Click to hide internal directories.