Versions in this module Expand all Collapse all v0 v0.1.1 Jul 27, 2019 Changes in this version + var ErrEmptyQueue = errors.New("queue is empty") + var ErrEmptyStack = errors.New("stack is empty") v0.1.0 Jul 27, 2019 Changes in this version + var ErrQueue = errors.New("queue is empty") + var ErrStack = errors.New("stack is empty") + type LinkedList struct + func NewLinkedList() *LinkedList + func (list *LinkedList) Count() int + func (list *LinkedList) Insert(data interface{}) + type Node struct + type Queue struct + func NewQueue() *Queue + func (q *Queue) Dequeue() (interface{}, error) + func (q *Queue) Enqueue(value interface{}) + func (q *Queue) Length() int + type Stack struct + func NewStack() *Stack + func (stack *Stack) Length() int + func (stack *Stack) Pop() (interface{}, error) + func (stack *Stack) Push(value interface{}) + type StackItem struct