Go stdlib package — go/importer. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
.Default()NeutralDefault() types.Importer
Default returns an Importer for the compiler that built the running binary.
.For()NeutralFor(compiler string, lookup Lookup) types.Importer
For calls ForCompiler with a new FileSet.
.ForCompiler()NeutralForCompiler(fset *token.FileSet, compiler string, lookup Lookup) types.Importer
ForCompiler returns an Importer for importing from installed packages
.Lookup()Neutraltype Lookup ...
A Lookup function returns a reader to access package data for
| FQN | Field | |
|---|---|---|
| go/importer | 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 ... # go/importer