MCPcopy
hub / github.com/gofiber/fiber / Push

Method Push

middleware/cache/heap.go:47–49  ·  view source on GitHub ↗

Push implements heap.Interface and inserts a new entry into the heap.

(x any)

Source from the content-addressed store, hash-verified

45
46// Push implements heap.Interface and inserts a new entry into the heap.
47func (h *indexedHeap) Push(x any) {
48 h.pushInternal(x.(heapEntry)) //nolint:forcetypeassert,errcheck // Forced type assertion required to implement the heap.Interface interface
49}
50
51// Pop implements heap.Interface and removes the last entry from the heap.
52func (h *indexedHeap) Pop() any {

Callers 1

Calls 1

pushInternalMethod · 0.95

Tested by 1