package
Version:
v0.1.1
Opens a new window with list of versions in this module.
Published: Jan 26, 2019
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
Package queue implement a simple fix size FILO queue
a fixed size FILO queue
NewQueue return a given size queue
return the queue capacity
func (q *Queue) GetHead() interface{}
Get the item at the head of queue but don't remove it from queue
func (q *Queue) GetTail() interface{}
Get the item at the tail of queue
Check if the queue is empty
Check if the queue is full
func (q *Queue) Pop() interface{}
Pop a item from queue
func (q *Queue) Push(item interface{}) (evicted bool)
Push a new item into queue
Source Files
¶
Click to show internal directories.
Click to hide internal directories.