Versions in this module Expand all Collapse all v0 v0.0.2 Jul 21, 2021 v0.0.1 Jun 29, 2021 Changes in this version + type Option func(q *Queue) + func WithComparator(cmp container.Comparator) Option + func WithItems(item []interface{}) Option + func WithMaxHeap() Option + type Queue struct + func New(opts ...Option) *Queue + func (sf *Queue) Add(items interface{}) + func (sf *Queue) Clear() + func (sf *Queue) Contains(val interface{}) bool + func (sf *Queue) IsEmpty() bool + func (sf *Queue) Len() int + func (sf *Queue) Peek() interface{} + func (sf *Queue) Poll() interface{} + func (sf *Queue) Remove(val interface{})