Codebase list golang-github-vbauerster-mpb / 20d7d1d
heap.Interface assertion Vladimir Bauer 3 years ago
1 changed file(s) with 4 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
00 package mpb
11
2 // A priorityQueue implements heap.Interface
2 import "container/heap"
3
4 var _ heap.Interface = (*priorityQueue)(nil)
5
36 type priorityQueue []*Bar
47
58 func (pq priorityQueue) Len() int { return len(pq) }