buildinfo

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package buildinfo provides access to build-time information such as the build date and version control details

Index

Constants

This section is empty.

Variables

View Source
var (
	// set via ldflags -X / goreleaser or from debug.ReadBuildInfo()
	Version = "dev"
	Commit  = "none"
	Tag     = ""
	Branch  = ""
	BuiltBy = "manual"
	DateStr = ""
	Date    *time.Time
	Dirty   bool
)

Functions

func BuildInfo

func BuildInfo() *proto.BuildInfo

func ReadVCSInfos

func ReadVCSInfos() (bool, string, bool, *time.Time)

func UserAgent

func UserAgent() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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