Push adds data into the top of the stack.
(data *Data)
| 32 | |
| 33 | // Push adds data into the top of the stack. |
| 34 | func (s *Stack) Push(data *Data) { |
| 35 | s.data = append(s.data, data) |
| 36 | } |
| 37 | |
| 38 | // Pop removes data from the top of the stack. |
| 39 | func (s *Stack) Pop() (*Data, error) { |