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

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

Awesome Lists containing this project

README

        

# go-deque

[![Build Status](https://github.com/dnaeon/go-deque/actions/workflows/test.yaml/badge.svg)](https://github.com/dnaeon/go-deque/actions/workflows/test.yaml/badge.svg)
[![Go Reference](https://pkg.go.dev/badge/gopkg.in/dnaeon/go-deque.v1.svg)](https://pkg.go.dev/gopkg.in/dnaeon/go-deque.v1)
[![Go Report Card](https://goreportcard.com/badge/gopkg.in/dnaeon/go-deque.v1)](https://goreportcard.com/report/gopkg.in/dnaeon/go-deque.v1)
[![codecov](https://codecov.io/gh/dnaeon/go-deque/branch/v1/graph/badge.svg)](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).