Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 4.7% dependent repos on proxy.golang.org

proxy.golang.org : github.com/rjrivero/ring

Package ring provides support for circular fixed-size data structures, like (LIFO) Stacks and (FIFO) Queues, that wrap around once they reach a certain maximum size. Rings should be paired with arrays or slices. The ring will manage the ring head (the oldest item pushed to the ring) and tail (the most recent item pushed to the ring) as offsets into the array or slice, e.g: If you keep pushing items, the tail of the ring will eventually wrap around the end of the slice, until it reaches the head. Once that happens, the ring is full and pushing more items will evict the oldest ones, moving the head of the ring forward.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/rjrivero/ring
Keywords: golang, queue, ring, stack
License: MIT
Latest release: over 4 years ago
First release: over 4 years ago
Namespace: github.com/rjrivero
Dependent repositories: 1
Stars: 0 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 24 days ago

    Loading...
    Readme
    Loading...