sdk/golang/Standard Library/GoContainerHeap
Standard Library

GoContainerHeap

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

Other Methods

.Fix()Neutral
#
Signature
Fix(h Interface, i int)

Fix re-establishes the heap ordering after the element at index i has changed its value.

.Init()Neutral
#
Signature
Init(h Interface)

Init establishes the heap invariants required by the other routines in this package.

.Pop()Neutral
#
Signature
Pop(h Interface) any

Pop removes and returns the minimum element (according to Less) from the heap.

.Push()Neutral
#
Signature
Push(h Interface, x any)

Push pushes the element x onto the heap.

.Remove()Neutral
#
Signature
Remove(h Interface, i int) any

Remove removes and returns the element at index i from the heap.

.Interface()Neutral
#
Signature
type Interface ...

The Interface type describes the requirements

Fully-Qualified Names

FQNField
container/heapfqns[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 ...  # container/heap