-- import "github.com/darylnwk/stack"
type Stack struct {
}
Stack defines a thread safe stack
func New() *Stack
New initialises a new Stack
func (s *Stack) Peek() interface{}
Peek returns the element at the top of the stack
func (s *Stack) Pop() interface{}
Pop returns the top element and nil if the stack is empty
func (s *Stack) Push(elements ...interface{})
Push adds elements to the stack
func (s *Stack) Size() int
Size returns the total number of elements in the stack