buildinfo

package
v0.0.0-...-2d5464a Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2015 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package buildinfo provides information about the current build.

Index

Constants

This section is empty.

Variables

View Source
var GitInfo string

GitInfo is either the empty string (the default) or is set to the git hash of the most recent commit using the -X linker flag. For example, it's set like: $ go install --ldflags="-X camlistore.org/pkg/buildinfo.GitInfo "`./misc/gitversion` camlistore.org/server/camlistored

Functions

func TestingLinked

func TestingLinked() bool

TestingLinked reports whether the "testing" package is linked into the binary. It always returns false for Go 1.1.

func Version

func Version() string

Version returns the git version of this binary. If the linker flags were not provided, the return value is "unknown".

Types

This section is empty.

Jump to

Keyboard shortcuts

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