sdk/golang/Standard Library/GoDebugBuildinfo
Standard Library

GoDebugBuildinfo

Go stdlib package — debug/buildinfo. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.

Other Methods

.Read()Neutral
#
Signature
Read(r io.ReaderAt) (*BuildInfo, error)

Read returns build information embedded in a Go binary file

.ReadFile()Neutral
#
Signature
ReadFile(name string) (*BuildInfo, error)

ReadFile returns build information embedded in a Go binary

.BuildInfo()Neutral
#
Signature
type BuildInfo ...

Type alias for build info. We cannot move the types here, since

Fully-Qualified Names

FQNField
debug/buildinfofqns[0]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

go.mod
// standard library — no go.mod entry required
rule.py
from codepathfinder.go_rule import ...  # debug/buildinfo