Count returns the number of items in the stack.
()
| 27 | |
| 28 | // Count returns the number of items in the stack. |
| 29 | func (s *Stack) Count() int { |
| 30 | return len(s.data) |
| 31 | } |
| 32 | |
| 33 | // Push adds data into the top of the stack. |
| 34 | func (s *Stack) Push(data *Data) { |