Sture
🧱 Sture is a collection of data structures based on Go 1.18+ Generics (Stack, Queue, Linked List, etc.)
Install / Use
/learn @HotPotatoC/StureREADME
Sture
A collection of data structures based on Go 1.18+ Generics.
Why this name?
I basically used an AI to generate the name sture 🗿. But... sture can be interpreted as "structure".
Installation
go get github.com/HotPotatoC/sture
Usage
Creating a priority queue using:
import "github.com/HotPotatoC/sture/queue"
func main() {
pq := queue.NewPriorityQueue[string]()
pq.Enqueue("Adam", 1)
pq.Enqueue("John", 3)
pq.Enqueue("Bob", 2)
top := pq.Peek()
fmt.Println(top) // John
}
See more examples here
Spec
Supported data structures at the moment:
- Binary search tree
- AVL tree
- Linked List
- Queue
- Priority Queue
- Ring Buffer
- Deque
- Stack
- Hash Table
- Chained Hash Table
- more to come...
Support
If this project is helpful to you, please consider supporting me by donating or just give this project a 🌟
<a href="https://www.buymeacoffee.com/hotpotato" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" alt="Buy Me A Coffee" style="height: 41px !important;width: 174px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;" ></a>
Related Skills
node-connect
342.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
xurl
342.5kA CLI tool for making authenticated requests to the X (Twitter) API. Use this skill when you need to post tweets, reply, quote, search, read posts, manage followers, send DMs, upload media, or interact with any X API v2 endpoint.
frontend-design
85.3kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
342.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
