Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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")
}
```