(x any)
| 516 | } |
| 517 | func (pq *priorityQueueImp) Swap(i, j int) { (*pq)[i], (*pq)[j] = (*pq)[j], (*pq)[i] } |
| 518 | func (pq *priorityQueueImp) Push(x any) { *pq = append(*pq, x.(*queueItem)) } |
| 519 | func (pq *priorityQueueImp) Pop() any { |
| 520 | n := len(*pq) |
| 521 | ret := (*pq)[n-1] |
nothing calls this directly
no outgoing calls
no test coverage detected