From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/go/debug%2Fbuildinfo%2Findex.html | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 devdocs/go/debug%2Fbuildinfo%2Findex.html (limited to 'devdocs/go/debug%2Fbuildinfo%2Findex.html') diff --git a/devdocs/go/debug%2Fbuildinfo%2Findex.html b/devdocs/go/debug%2Fbuildinfo%2Findex.html new file mode 100644 index 00000000..beb6cce0 --- /dev/null +++ b/devdocs/go/debug%2Fbuildinfo%2Findex.html @@ -0,0 +1,19 @@ +

Package buildinfo

Overview

Package buildinfo provides access to information embedded in a Go binary about how it was built. This includes the Go toolchain version, and the set of modules used (for binaries built in module mode).

+

Build information is available for the currently running binary in runtime/debug.ReadBuildInfo.

Index

Package files

buildinfo.go

type BuildInfo 1.18

Type alias for build info. We cannot move the types here, since runtime/debug would need to import this package, which would make it a much larger dependency.

+
type BuildInfo = debug.BuildInfo

func Read 1.18

func Read(r io.ReaderAt) (*BuildInfo, error)

Read returns build information embedded in a Go binary file accessed through the given ReaderAt. Most information is only available for binaries built with module support.

+

func ReadFile 1.18

func ReadFile(name string) (info *BuildInfo, err error)

ReadFile returns build information embedded in a Go binary file at the given path. Most information is only available for binaries built with module support.

+

+ © Google, Inc.
Licensed under the Creative Commons Attribution License 3.0.
+ http://golang.org/pkg/debug/buildinfo/ +

+
-- cgit v1.2.3