Versions in this module Expand all Collapse all v0 v0.2.0 Nov 24, 2023 Changes in this version + var ErrStackUnderflow = errors.New("stack underflow") + type Stack struct + func NewStack[T comparable]() Stack[T] + func (s *Stack[T]) Peek() T + func (s *Stack[T]) Pop() (T, error) + func (s *Stack[T]) Push(e T)