package
Version:
v0.0.0-...-9dec8c7
Opens a new window with list of versions in this module.
Published: Sep 7, 2020
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
An FIFO queue.
Returns if the queue is empty or not.
Pops elements from head.
q := Queue{1}
q.Push(2)
q.Push(3)
fmt.Println(q.Pop())
fmt.Println(q.Pop())
fmt.Println(q.IsEmpty())
fmt.Println(q.Pop())
fmt.Println(q.IsEmpty())
Output:
1
2
false
3
true
Pushes the element into the queue.
e.g. q.Push(123)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.