Standard Library

GoCmp

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

Other Methods

.Compare()Neutral
#
Signature
Compare(x T, y T) int

Compare returns

.Less()Neutral
#
Signature
Less(x T, y T) bool

Less reports whether x is less than y.

.Ordered()Neutral
#
Signature
type Ordered ...

Ordered is a constraint that permits any ordered type: any type

Fully-Qualified Names

FQNField
cmpfqns[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 ...  # cmp