Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PriorityQueue ¶
type PriorityQueue struct {
// contains filtered or unexported fields
}
A PriorityQueue that returns items ordered by 'less' function. This type IS NOT thread safe.
func NewPriorityQueue ¶
func NewPriorityQueue(itemExample interface{}, less func(i, j interface{}) bool) *PriorityQueue
func (*PriorityQueue) Len ¶
func (pq *PriorityQueue) Len() int
func (*PriorityQueue) Pop ¶
func (pq *PriorityQueue) Pop() interface{}
func (*PriorityQueue) Push ¶
func (pq *PriorityQueue) Push(item interface{})
Click to show internal directories.
Click to hide internal directories.