Standard Library

GoPrinter

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.

Other Methods

.Config.Fprint()Neutral
#
Signature
Config.Fprint(output io.Writer, fset *token.FileSet, node any) error

Fprint "pretty-prints" an AST node to output for a given configuration cfg.

.Fprint()Neutral
#
Signature
Fprint(output io.Writer, fset *token.FileSet, node any) error

Fprint "pretty-prints" an AST node to output.

.CommentedNode()Neutral
#
Signature
type CommentedNode ...

A CommentedNode bundles an AST node and corresponding comments.

.Config()Neutral
#
Signature
type Config ...

A Config node controls the output of Fprint.

.Mode()Neutral
#
Signature
type Mode ...

A Mode value is a set of flags (or 0). They control printing.

Fully-Qualified Names

FQNField
go/printerfqns[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 ...  # go/printer