Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thomasrayner/goqueue
A simple queue implementation using channels
https://github.com/thomasrayner/goqueue
Last synced: about 1 month ago
JSON representation
A simple queue implementation using channels
- Host: GitHub
- URL: https://github.com/thomasrayner/goqueue
- Owner: thomasrayner
- License: mit
- Created: 2024-02-06T16:51:18.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-02-06T17:30:49.000Z (12 months ago)
- Last Synced: 2024-10-26T14:58:32.233Z (3 months ago)
- Language: Go
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# goqueue
A simple implementation of queues and stacks using slices
## Usage
```go
import (
"github.com/thomasrayner/goqueue"
)func main() {
// Create a new queue
q := goqueue.NewQueue()
q.Enqueue("hello")// Create a new stack
s := goqueue.NewStack()
s.Push("world")
}
```