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

https://github.com/yanun0323/gollection

A package implement Queue, Stack etc... in go.
https://github.com/yanun0323/gollection

golang queue stack

Last synced: 3 days ago
JSON representation

A package implement Queue, Stack etc... in go.

Awesome Lists containing this project

README

        

# Gollection

Gollection provides `Generic Data Structures`.

## Requirement
_GO 1.21 or higher_

## Support Structure
- Set
- Queue
- Stack
- Priority Queue
- B Tree
- AVL Tree

#### _`sync` is implemented for thread safe_
- Sync Map
- Sync Set
- Sync Queue
- Sync Stack
- Sync Priority Queue
- Sync B Tree
- Sync AVL Tree

## Import
```go
import "github.com/yanun0323/gollection/v2"
```

## Overview
- ### Set
- Contain
- Len
- Insert
- Remove
- ToSlice
- ### Queue
- Len
- Dequeue
- Enqueue
- Peek
- ToSlice
- ### Stack
- Len
- Peek
- Pop
- Push
- ToSlice
- ### Priority Queue
- Len
- Dequeue
- Enqueue
- Peek
- ToSlice
- ### B Tree
- Contain
- Len
- Insert
- Remove
- Search
- Max
- Min
- RemoveMax
- RemoveMin
- Ascend
- Descend
- ### AVL Tree
- Contain
- Len
- Insert
- Remove
- Search
- Max
- Min
- RemoveMax
- RemoveMin
- Ascend
- Descend

# License

© Yanun, 2022 ~ now

Released under the MIT License