build

package
v0.26.15-script-exec-l... Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: AGPL-3.0 Imports: 0 Imported by: 3 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 Commit

func Commit() string

Commit returns the commit at which this build was created.

func IsDefined

func IsDefined(v string) bool

IsDefined determines whether a version string is defined. Inputs should have been produced from this package.

func Semver

func Semver() string

Semver returns the semantic version of this build.

Types

This section is empty.

Jump to

Keyboard shortcuts

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