package
Version:
v0.0.0-...-3369a28
Opens a new window with list of versions in this module.
Published: Nov 28, 2024
License: GPL-3.0
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
¶
A FIFO queue.
Returns if the queue is empty or not.
Pops element 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
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.