https://github.com/dnaeon/go-deque
A simple, generic and thread-safe deque implementation
https://github.com/dnaeon/go-deque
deque double-ended-queue go golang
Last synced: about 2 months ago
JSON representation
A simple, generic and thread-safe deque implementation
- Host: GitHub
- URL: https://github.com/dnaeon/go-deque
- Owner: dnaeon
- License: other
- Created: 2022-09-24T11:12:53.000Z (over 2 years ago)
- Default Branch: v1
- Last Pushed: 2025-02-03T06:46:26.000Z (4 months ago)
- Last Synced: 2025-03-27T05:41:36.955Z (3 months ago)
- Topics: deque, double-ended-queue, go, golang
- Language: Go
- Homepage:
- Size: 9.77 KB
- Stars: 3
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-deque
[](https://github.com/dnaeon/go-deque/actions/workflows/test.yaml/badge.svg)
[](https://pkg.go.dev/gopkg.in/dnaeon/go-deque.v1)
[](https://goreportcard.com/report/gopkg.in/dnaeon/go-deque.v1)
[](https://codecov.io/gh/dnaeon/go-deque)A simple, generic, thread-safe implementation of [double-ended
queue](https://en.wikipedia.org/wiki/Double-ended_queue) in Go.## Installation
Install `go-deque` by executing the following command.
``` shell
go get -v gopkg.in/dnaeon/go-deque.v1
```## Usage
See the included [test cases](./deque_test.go) for some examples.
## Tests
Run the tests.
``` shell
make test
```## License
`go-deque` is Open Source and licensed under the [BSD
License](http://opensource.org/licenses/BSD-2-Clause).