Go stdlib package — embed. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
.FS.Open()NeutralFS.Open(name string) (fs.File, error)
Open opens the named file for reading and returns it as an fs.File.
.FS.ReadDir()NeutralFS.ReadDir(name string) ([]fs.DirEntry, error)
ReadDir reads and returns the entire named directory.
.FS.ReadFile()NeutralFS.ReadFile(name string) ([]byte, error)
ReadFile reads and returns the content of the named file.
.FS()Neutraltype FS ...
An FS is a read-only collection of files, usually initialized with a //go:embed directive.
| FQN | Field | |
|---|---|---|
| embed | 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 ... # embed