package
Version:
v0.0.0-...-df6d6b4
Opens a new window with list of versions in this module.
Published: Jan 7, 2020
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type PQI interface {
Priority() int
}
PQI is an item in a PriorityQueue.
type PriorityQueue struct {
}
A PriorityQueue of items.
NewPriority creates a new PriorityQueue.
Len returns the length of the pqueue.
Pop pops an item off of the pqueue.
Push pushes an item onto the pqueue.
A Queue of items.
Len returns the length of the queue.
func (q Queue) Pop() interface{}
Pop pops an item off the queue.
func (q Queue) Push(v interface{})
Push pushes an item onto the queue.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.