Help us shape the future of Go! Take the 2026 Go Developer Survey

buildinfo

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version   string
	Commit    string
	BuildTime string
)

Version, Commit, and BuildTime are optional release-build overrides. Normal builds leave them empty and use the module and VCS metadata embedded by Go.

Functions

This section is empty.

Types

type Info

type Info struct {
	Version   string `json:"version"`
	Commit    string `json:"commit"`
	BuildTime string `json:"build_time"`
	// Modified is absent when the Go toolchain did not embed a vcs.modified
	// setting. A nil value must not be interpreted as a clean checkout.
	Modified  *bool  `json:"modified,omitempty"`
	GoVersion string `json:"go_version"`
}

func Current

func Current() Info

Jump to

Keyboard shortcuts

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