Documentation ¶
Overview ¶
Package build contains information about the build that injected at build-time.
To use this package, simply import it in your program, then add build arguments like the following:
go build -ldflags "-X github.com/onflow/flow-go/cmd/build.semver=v1.0.0"
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsDefined ¶
IsDefined determines whether a version string is defined. Inputs should have been produced from this package.
func SemverV2 ¶ added in v0.31.0
SemverV2 returns the semantic version of this build as a semver.Version if it is defined, or nil otherwise. The version string is converted to a semver compliant one if it isn't already but this might fail if the version string is still not semver compliant. In that case, an error is returned.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.