version

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2021 License: Apache-2.0 Imports: 2 Imported by: 6

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.

Jump to

Keyboard shortcuts

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