Standard Library

GoMaps

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

Other Methods

.Clone()Neutral
#
Signature
Clone(m M) M

Clone returns a copy of m. This is a shallow clone:

.Copy()Neutral
#
Signature
Copy(dst M1, src M2)

Copy copies all key/value pairs in src adding them to dst.

.DeleteFunc()Neutral
#
Signature
DeleteFunc(m M, del func(K, V) bool)

DeleteFunc deletes any key/value pairs from m for which del returns true.

.Equal()Neutral
#
Signature
Equal(m1 M1, m2 M2) bool

Equal reports whether two maps contain the same key/value pairs.

.EqualFunc()Neutral
#
Signature
EqualFunc(m1 M1, m2 M2, eq func(V1, V2) bool) bool

EqualFunc is like Equal, but compares values using eq.

Fully-Qualified Names

FQNField
mapsfqns[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 ...  # maps