()
| 281 | type resultHeap []Result |
| 282 | |
| 283 | func (h resultHeap) Len() int { return len(h) } |
| 284 | func (h resultHeap) Less(i, j int) bool { return h[i].Score < h[j].Score } |
| 285 | func (h resultHeap) Swap(i, j int) { h[i], h[j] = h[j], h[i] } |
| 286 | func (h *resultHeap) Push(x interface{}) { |