Standard Library

GoEmbed

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

Other Methods

.FS.Open()Neutral
#
Signature
FS.Open(name string) (fs.File, error)

Open opens the named file for reading and returns it as an fs.File.

.FS.ReadDir()Neutral
#
Signature
FS.ReadDir(name string) ([]fs.DirEntry, error)

ReadDir reads and returns the entire named directory.

.FS.ReadFile()Neutral
#
Signature
FS.ReadFile(name string) ([]byte, error)

ReadFile reads and returns the content of the named file.

.FS()Neutral
#
Signature
type FS ...

An FS is a read-only collection of files, usually initialized with a //go:embed directive.

Fully-Qualified Names

FQNField
embedfqns[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 ...  # embed