package
Version:
v1.26.1
Opens a new window with list of versions in this module.
Published: May 15, 2026
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
buildinfoパッケージは、Goバイナリに埋め込まれた情報にアクセスするための機能を提供します。
これには、Goツールチェーンのバージョン、および使用されたモジュールのセット(モジュールモードでビルドされたバイナリの場合)が含まれます。
ビルド情報は、現在実行中のバイナリでruntime/debug.ReadBuildInfoを使用して利用できます。
ビルド情報のための型エイリアスです。
ここに型を移動することはできません。なぜなら、
runtime/debugがこのパッケージをインポートする必要があるため、
依存関係が大きくなるためです。
Readは、指定されたReaderAtを介してアクセスされるGoバイナリファイルに埋め込まれたビルド情報を返します。
ほとんどの情報は、モジュールサポートでビルドされたバイナリでのみ利用可能です。
ReadFileは、指定されたパスのGoバイナリファイルに埋め込まれたビルド情報を返します。
ほとんどの情報は、モジュールサポートでビルドされたバイナリでのみ利用可能です。
Source Files
¶
Click to show internal directories.
Click to hide internal directories.