Versions in this module Expand all Collapse all v1 v1.0.0 Aug 17, 2016 Changes in this version + type Deque struct + func NewCappedDeque(capacity int) *Deque + func NewDeque() *Deque + func (s *Deque) Append(item interface{}) bool + func (s *Deque) Capacity() int + func (s *Deque) Empty() bool + func (s *Deque) First() interface{} + func (s *Deque) Full() bool + func (s *Deque) Last() interface{} + func (s *Deque) Pop() interface{} + func (s *Deque) Prepend(item interface{}) bool + func (s *Deque) Shift() interface{} + func (s *Deque) Size() int + type PQType int + const MAXPQ + const MINPQ + type PQueue struct + func NewPQueue(pqType PQType) *PQueue + func (pq *PQueue) Empty() bool + func (pq *PQueue) Head() (interface{}, int) + func (pq *PQueue) Pop() (interface{}, int) + func (pq *PQueue) Push(value interface{}, priority int) + func (pq *PQueue) Size() int + type Queue struct + func NewQueue() *Queue + func (q *Queue) Dequeue() interface{} + func (q *Queue) Enqueue(item interface{}) + func (q *Queue) Head() interface{} + type Stack struct + func NewStack() *Stack + func (s *Stack) Head() interface{} + func (s *Stack) Pop() interface{} + func (s *Stack) Push(item interface{})