Go stdlib package — go/printer. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
.Config.Fprint()NeutralConfig.Fprint(output io.Writer, fset *token.FileSet, node any) error
Fprint "pretty-prints" an AST node to output for a given configuration cfg.
.Fprint()NeutralFprint(output io.Writer, fset *token.FileSet, node any) error
Fprint "pretty-prints" an AST node to output.
.CommentedNode()Neutraltype CommentedNode ...
A CommentedNode bundles an AST node and corresponding comments.
| FQN | Field | |
|---|---|---|
| go/printer | 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/printer