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.
.Read()NeutralRead(r io.ReaderAt) (*BuildInfo, error)
Read returns build information embedded in a Go binary file
.ReadFile()NeutralReadFile(name string) (*BuildInfo, error)
ReadFile returns build information embedded in a Go binary
.BuildInfo()Neutraltype BuildInfo ...
Type alias for build info. We cannot move the types here, since
| FQN | Field | |
|---|---|---|
| debug/buildinfo | fqns[0] |
Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.
// standard library — no go.mod entry required
from codepathfinder.go_rule import ... # debug/buildinfo