package
Version:
v0.2.58
Opens a new window with list of versions in this module.
Published: Jul 26, 2024
License: BSD-3-Clause
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 is a basic FIFO queue based on a circular list that resizes as needed.
func (instance *Queue) Pop() interface{}
Pop removes and returns a node from the queue in first to last order.
func (instance *Queue) Push(value interface{})
Push adds a node to the queue.
Stack is a basic LIFO stack that resizes as needed.
func (instance *Stack) Pop() interface{}
Pop removes and returns an item from the stack in last to first order.
func (instance *Stack) Push(value interface{})
Push adds an item to the stack.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.