MCPcopy Index your code
hub / github.com/coder/coder / Swap

Method Swap

agent/filefinder/query.go:285–285  ·  view source on GitHub ↗
(i, j int)

Source from the content-addressed store, hash-verified

283func (h resultHeap) Len() int { return len(h) }
284func (h resultHeap) Less(i, j int) bool { return h[i].Score < h[j].Score }
285func (h resultHeap) Swap(i, j int) { h[i], h[j] = h[j], h[i] }
286func (h *resultHeap) Push(x interface{}) {
287 r, ok := x.(Result)
288 if ok {

Callers 2

handleManifestMethod · 0.45
CloseMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected