package
Version:
v0.0.0-...-4d2c057
Opens a new window with list of versions in this module.
Published: Nov 7, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Queue defines a queue data structure.
func (q *Queue) Dequeue() *interface{}
Dequeue an element
func (q *Queue) Enqueue(e interface{})
Enqueue an element.
func (q *Queue) Peek() *interface{}
Peek a head element without removing
Size returns the length of queue.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.