perkeep.org: perkeep.org/pkg/buildinfo Index | Files

package buildinfo

import "perkeep.org/pkg/buildinfo"

Package buildinfo provides information about the current build.

Index

Package Files

buildinfo.go

Variables

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/perkeepd

var Version string

Version is a string like "0.10" or "1.0", if applicable.

func DjpegStatus Uses

func DjpegStatus() string

DjpegStatus returns a plaintext (non-HTML) string describing the state of djpeg on the system.

func RegisterDjpegStatusFunc Uses

func RegisterDjpegStatusFunc(fn func() string)

func Summary Uses

func Summary() string

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

func TestingLinked Uses

func TestingLinked() bool

TestingLinked reports whether the "testing" package is linked into the binary.

Package buildinfo imports 1 packages (graph) and is imported by 12 packages. Updated 2019-06-11. Refresh now. Tools for package owners.