Versions in this module Expand all Collapse all v1 v1.17.5 May 22, 2022 Changes in this version + type Item struct + Index int + Priority int + Value interface{} + type PriorityQueue struct + func (pq *PriorityQueue) Init(initItemSliceNum int) + func (pq *PriorityQueue) Len() int + func (pq *PriorityQueue) Pop() *Item + func (pq *PriorityQueue) Push(item *Item) + func (pq *PriorityQueue) Remove(item *Item) + func (pq *PriorityQueue) Update(item *Item, value interface{}, priority int) + type PriorityQueueSlice []*Item + func (pq *PriorityQueueSlice) Pop() interface{} + func (pq *PriorityQueueSlice) Push(x interface{}) + func (pq *PriorityQueueSlice) Update(item *Item, value interface{}, priority int) + func (pq PriorityQueueSlice) Len() int + func (pq PriorityQueueSlice) Less(i, j int) bool + func (pq PriorityQueueSlice) Swap(i, j int) + type Queue struct + func NewQueue() *Queue + func (q *Queue) Add(elem interface{}) + func (q *Queue) Get(i int) interface{} + func (q *Queue) Length() int + func (q *Queue) Peek() interface{} + func (q *Queue) Pop() interface{} + type SyncQueue struct + func NewSyncQueue() *SyncQueue + func (q *SyncQueue) Add(elem interface{}) + func (q *SyncQueue) Get(i int) interface{} + func (q *SyncQueue) Len() int + func (q *SyncQueue) Peek() interface{} + func (q *SyncQueue) Pop() interface{} + func (q *SyncQueue) RLockRange(f func(interface{}))