Standard Library

GoFormat

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

Other Methods

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

Node formats node in canonical gofmt style and writes the result to dst.

.Source()Neutral
#
Signature
Source(src []byte) ([]byte, error)

Source formats src in canonical gofmt style and returns the result

Fully-Qualified Names

FQNField
go/formatfqns[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/format