Push a new value onto the Stack
(val interface{})
| 22 | |
| 23 | // Push a new value onto the Stack |
| 24 | func (s *Stack) Push(val interface{}) { |
| 25 | *s = append(*s, val) // Simply append the new value to the end of the Stack |
| 26 | } |
| 27 | |
| 28 | // Pop Remove and return top element of Stack. Return false if Stack is empty. |
| 29 | func (s *Stack) Pop() interface{} { |
no outgoing calls