package
Version:
v0.6.0
Opens a new window with list of versions in this module.
Published: May 30, 2017
License: MIT, MIT
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
¶
Return the stack's length
func (s *Stack) Peek() (value interface{}, exists bool)
Peek returns a top without removing it from list
func (s *Stack) Pop() (value interface{})
Remove the top element from the stack and return it's value
If the stack is empty, return nil
func (s *Stack) PopLast() (value interface{})
func (s *Stack) Push(value interface{})
Push a new element onto the stack
Source Files
¶
Click to show internal directories.
Click to hide internal directories.