Push a new element onto the stack
(value *TextEvent)
| 19 | |
| 20 | // Push a new element onto the stack |
| 21 | func (s *TEStack) Push(value *TextEvent) { |
| 22 | s.Top = &Element{value, s.Top} |
| 23 | s.Size++ |
| 24 | } |
| 25 | |
| 26 | // Pop removes the top element from the stack and returns its value |
| 27 | // If the stack is empty, return nil |
no outgoing calls