Go stdlib package — container/ring. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
.Ring.Do()NeutralRing.Do(f func(any))
Do calls function f on each element of the ring, in forward order.
.Ring.Link()NeutralRing.Link(s *Ring) *Ring
Link connects ring r with ring s such that r.Next()
.Ring.Move()NeutralRing.Move(n int) *Ring
Move moves n % r.Len() elements backward (n < 0) or forward (n >= 0)
.Ring.Next()NeutralRing.Next() *Ring
Next returns the next ring element. r must not be empty.
.Ring.Prev()NeutralRing.Prev() *Ring
Prev returns the previous ring element. r must not be empty.
.Ring.Unlink()NeutralRing.Unlink(n int) *Ring
Unlink removes n % r.Len() elements from the ring r, starting
| FQN | Field | |
|---|---|---|
| container/ring | 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 ... # container/ring