mirror of
https://github.com/vee1e/subidx.git
synced 2026-09-01 17:57:13 +00:00
store: gofmt after sort import
This commit is contained in:
parent
c67b4adc45
commit
5d9d7dd34b
1 changed files with 5 additions and 5 deletions
|
|
@ -261,11 +261,11 @@ const DefaultScanLimit = 100000
|
|||
|
||||
type resultHeap []Result
|
||||
|
||||
func (h resultHeap) Len() int { return len(h) }
|
||||
func (h resultHeap) Less(i, j int) bool { return h[i].Seq < h[j].Seq }
|
||||
func (h resultHeap) Swap(i, j int) { h[i], h[j] = h[j], h[i] }
|
||||
func (h *resultHeap) Push(x any) { *h = append(*h, x.(Result)) }
|
||||
func (h *resultHeap) Pop() any { old := *h; n := len(old); x := old[n-1]; *h = old[:n-1]; return x }
|
||||
func (h resultHeap) Len() int { return len(h) }
|
||||
func (h resultHeap) Less(i, j int) bool { return h[i].Seq < h[j].Seq }
|
||||
func (h resultHeap) Swap(i, j int) { h[i], h[j] = h[j], h[i] }
|
||||
func (h *resultHeap) Push(x any) { *h = append(*h, x.(Result)) }
|
||||
func (h *resultHeap) Pop() any { old := *h; n := len(old); x := old[n-1]; *h = old[:n-1]; return x }
|
||||
|
||||
func (s *Store) Scan(apex string, limit int) ([]Result, error) {
|
||||
if limit <= 0 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue