Versions in this module Expand all Collapse all v0 v0.0.1 Jan 9, 2023 Changes in this version + type Heap struct + K uint32 + Nodes Nodes + func NewHeap(k uint32) *Heap + func (h *Heap) Add(val Node) + func (h *Heap) Find(item []byte) (int, bool) + func (h *Heap) Fix(idx int, count uint64) + func (h *Heap) Min() uint64 + func (h *Heap) Sorted() Nodes + type Node struct + Count uint64 + Item []byte + type Nodes []Node + func (n *Nodes) Pop() interface{} + func (n *Nodes) Push(val interface{}) + func (n Nodes) Len() int + func (n Nodes) Less(i, j int) bool + func (n Nodes) Swap(i, j int)