Versions in this module Expand all Collapse all v0 v0.2.2 Aug 8, 2025 v0.2.1 Mar 27, 2025 Changes in this version + var ErrDuplicateItem = errors.New("duplicate item") + var ErrEmpty = errors.New("queue is empty") + type Item struct + Key string + Priority int64 + Value interface{} + type PriorityQueue struct + func New() *PriorityQueue + func (pq *PriorityQueue) Len() int + func (pq *PriorityQueue) Pop() (*Item, error) + func (pq *PriorityQueue) PopByKey(key string) (*Item, error) + func (pq *PriorityQueue) Push(i *Item) error + func (pq *PriorityQueue) RetrieveByKey(key string) *Item