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() )
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.
Click to show internal directories.
Click to hide internal directories.