package
Version:
v0.0.0-...-00a60f4
Opens a new window with list of versions in this module.
Published: May 22, 2024
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.