Movatterモバイル変換


[0]ホーム

URL:


buildinfo

packagestandard library
go1.25.5Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License:BSD-3-ClauseImports:15Imported by:201

Details

Repository

cs.opensource.google/go/go

Links

Documentation

Overview

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

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

typeBuildInfo

type BuildInfo =debug.BuildInfo

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

funcRead

func Read(rio.ReaderAt) (*BuildInfo,error)

Read returns build information embedded in a Go binary fileaccessed through the given ReaderAt. Most information is only available forbinaries built with module support.

funcReadFile

func ReadFile(namestring) (info *BuildInfo, errerror)

ReadFile returns build information embedded in a Go binaryfile at the given path. Most information is only available for binaries builtwith module support.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp