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

Method removeInternal

middleware/cache/heap.go:84–87  ·  view source on GitHub ↗
(realIdx int)

Source from the content-addressed store, hash-verified

82}
83
84func (h *indexedHeap) removeInternal(realIdx int) (key string, size uint) { //nolint:nonamedreturns // gocritic unnamedResult prefers named key and size when removing heap entries
85 x := heap.Remove(h, realIdx).(heapEntry) //nolint:forcetypeassert,errcheck // Forced type assertion required to implement the heap.Interface interface
86 return x.key, x.bytes
87}
88
89// Remove entry by index
90func (h *indexedHeap) remove(idx int) (key string, size uint) { //nolint:nonamedreturns // gocritic unnamedResult prefers naming returned key and size pair

Callers 2

removeMethod · 0.95
removeFirstMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected