Go stdlib package — path. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
.Clean()NeutralClean(path string) string
Clean returns the shortest path name equivalent to path
.Dir()NeutralDir(path string) string
Dir returns all but the last element of path, typically the path's directory.
.Join()NeutralJoin(elem string) string
Join joins any number of path elements into a single path,
.Match()NeutralMatch(pattern string, name string) (bool, error)
Match reports whether name matches the shell pattern.
.Split()NeutralSplit(path string) (string, string)
Split splits path immediately following the final slash,
| FQN | Field | |
|---|---|---|
| path | 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 ... # path