version

package
v2.0.10 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2026 License: Apache-2.0, Apache-2.0 Imports: 3 Imported by: ? modules, 0 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

Index

Constants

This section is empty.

Variables

View Source
var (
	// Specifies the GIT sha of the build
	Build = "unknown"
	// Version for the build, should follow a semver
	Version = "unknown"
	// Build timestamp
	BuildTime = time.Now().String()
	// Git branch that was used to build the binary
	GitBranch = ""
)

This module provides the ability to inject Build (git sha) and Version information at compile time. To set these values invoke go build as follows go build -ldflags “-X github.com/lyft/flytestdlib/version.Build=xyz -X github.com/lyft/flytestdlib/version.Version=1.2.3" NOTE: If the version is set and server.StartProfilingServerWithDefaultHandlers are initialized then, `/version` will provide the build and version information

Functions

func LogBuildInformation

func LogBuildInformation(appName string)

Use this method to log the build information for the current app. The app name should be provided. To inject the build and version information refer to the top-level comment in this file

Types

This section is empty.

Jump to

Keyboard shortcuts

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