Simple priority queue implementation written in Go
Use .new()
to initialize a new priority queue.
The objects used in the queue should be from the same type, and need to implement Comparator inteface.
Use Push(...)
to add new item to the queue, and Pop()
to remove items from the queue.
See more examples in the test file