Standard Library

GoSync

sync package. Mutex, RWMutex, Once — not security sinks but relevant for race condition detection rules.

Other Methods

.Lock()Neutral
#
Signature
Lock()

Acquires mutex. Missing unlock is a resource leak finding.

.Unlock()Neutral
#
Signature
Unlock()

Releases mutex. Must be called, typically via defer.

Fully-Qualified Names

FQNField
syncfqns[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 GoSync