package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Jul 6, 2020
License: BSD-3-Clause
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
¶
Stack is a generic stack implementation. Not thread-safe.
Len returns the length of the stack
func (st *Stack) Peek() (e interface{})
Peek at the most recent element
func (st *Stack) Pop() (e interface{})
Pop an element
func (st *Stack) Push(e interface{})
Push an element, will be false if stack was improperly initialized
Source Files
¶
Click to show internal directories.
Click to hide internal directories.