buildinfo

package
v0.0.0-...-4ba1123 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 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 perkeep.org/pkg/buildinfo.GitInfo "`./misc/gitversion` perkeep.org/server/perkeepd

View Source
var Version string

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

Functions

func DjpegStatus

func DjpegStatus() string

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

func RegisterDjpegStatusFunc

func RegisterDjpegStatusFunc(fn func() string)

func Summary

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

func TestingLinked() bool

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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