Go stdlib package — io/ioutil. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
.NopCloser()NeutralNopCloser(r io.Reader) io.ReadCloser
NopCloser returns a ReadCloser with a no-op Close method wrapping
.ReadAll()NeutralReadAll(r io.Reader) ([]byte, error)
ReadAll reads from r until an error or EOF and returns the data it read.
.ReadDir()NeutralReadDir(dirname string) ([]fs.FileInfo, error)
ReadDir reads the directory named by dirname and returns
.ReadFile()NeutralReadFile(filename string) ([]byte, error)
ReadFile reads the file named by filename and returns the contents.
.TempDir()NeutralTempDir(dir string, pattern string) (string, error)
TempDir creates a new temporary directory in the directory dir.
.TempFile()NeutralTempFile(dir string, pattern string) (*os.File, error)
TempFile creates a new temporary file in the directory dir,
.WriteFile()NeutralWriteFile(filename string, data []byte, perm fs.FileMode) error
WriteFile writes data to a file named by filename.
| FQN | Field | |
|---|---|---|
| io/ioutil | 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 ... # io/ioutil