Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StrIntHeap ¶
type StrIntHeap []StrIntKV
StrIntHeap is a heap of StrIntKV. It implements heap.Interface.
func New ¶
func New(m map[string]int64) *StrIntHeap
func (StrIntHeap) Len ¶
func (h StrIntHeap) Len() int
func (StrIntHeap) Less ¶
func (h StrIntHeap) Less(i, j int) bool
Less is greater-than here so that we can pop *larger* items.
func (*StrIntHeap) Pop ¶
func (h *StrIntHeap) Pop() interface{}
func (*StrIntHeap) Push ¶
func (h *StrIntHeap) Push(x interface{})
func (StrIntHeap) Swap ¶
func (h StrIntHeap) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.