package
Version:
v1.2.0
Opens a new window with list of versions in this module.
Published: Aug 30, 2023
License: Apache-2.0
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
¶
Stack implementation used internally.
IsEmpty returns true if the stack is empty, false otherwise.
Peek returns the top element of the stack. Returns an error if the stack is empty.
Pop removes and returns the top element of the stack. Returns an error if the stack is empty.
func (s *Stack) Push(element interface{})
Push element into the stack.
Size returns the number of elements in the Stack.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.