Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/akhenakh/pqueue
Package pqueue provides a very simple priority queue.
https://github.com/akhenakh/pqueue
Last synced: 24 days ago
JSON representation
Package pqueue provides a very simple priority queue.
- Host: GitHub
- URL: https://github.com/akhenakh/pqueue
- Owner: akhenakh
- Created: 2022-01-02T19:17:39.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-02T19:36:09.000Z (almost 3 years ago)
- Last Synced: 2024-06-20T19:20:12.528Z (5 months ago)
- Language: Go
- Size: 4.88 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pqueue
Package pqueue provides a very simple priority queue
It's basically copy and paste from the heap package example,
only to override the Push method and not panicking on empty Pop()```go
func (pq *PriorityQueue) Push(priority int, value interface{})
func (pq *PriorityQueue) Pop() interface{}
```