Versions in this module Expand all Collapse all v2 v2.0.1 Jan 15, 2025 v2.0.0 Jan 15, 2025 Changes in this version + type Iterator struct + func (iterator *Iterator[T]) Begin() + func (iterator *Iterator[T]) End() + func (iterator *Iterator[T]) First() bool + func (iterator *Iterator[T]) Index() int + func (iterator *Iterator[T]) Last() bool + func (iterator *Iterator[T]) Next() bool + func (iterator *Iterator[T]) NextTo(f func(index int, value T) bool) bool + func (iterator *Iterator[T]) Prev() bool + func (iterator *Iterator[T]) PrevTo(f func(index int, value T) bool) bool + func (iterator *Iterator[T]) Value() T + type Queue struct + func New[T comparable]() *Queue[T] + func (queue *Queue[T]) Clear() + func (queue *Queue[T]) Dequeue() (value T, ok bool) + func (queue *Queue[T]) Empty() bool + func (queue *Queue[T]) Enqueue(value T) + func (queue *Queue[T]) FromJSON(data []byte) error + func (queue *Queue[T]) Iterator() *Iterator[T] + func (queue *Queue[T]) MarshalJSON() ([]byte, error) + func (queue *Queue[T]) Peek() (value T, ok bool) + func (queue *Queue[T]) Size() int + func (queue *Queue[T]) String() string + func (queue *Queue[T]) ToJSON() ([]byte, error) + func (queue *Queue[T]) UnmarshalJSON(bytes []byte) error + func (queue *Queue[T]) Values() []T