Priority Queue implementation on Go.
- On top of native heap
- Multithread access safe (using mutex)
- Fifo
//make queue
q := PriorityQueue.Build()
//push
pr: = 1
q.Push(something.(interface{}), pr)
//pull
somethingWithHightPr := q.Pull()
//ins - []chan interface{}
out := PriorityQueue.Prioritize(ins...)