Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/akhenakh/pqueue

Package pqueue provides a very simple priority queue.
https://github.com/akhenakh/pqueue

Last synced: 24 days ago
JSON representation

Package pqueue provides a very simple priority queue.

Awesome Lists containing this project

README

        

# Pqueue

Package pqueue provides a very simple priority queue
It's basically copy and paste from the heap package example,
only to override the Push method and not panicking on empty Pop()

```go
func (pq *PriorityQueue) Push(priority int, value interface{})
func (pq *PriorityQueue) Pop() interface{}
```