Skip to content

Repository files navigation

circlebuffer

Go ReferenceLicenseBuild

circlebuffer provides a modern circular buffer Go library with support for generics.

Getting Started

The circlebuffer package can be added to a project with go-get.

go get cattlecloud.net/go/circlebuffer@latest
import"cattlecloud.net/go/circlebuffer"

Examples

Inserting elements
buf:= circlebuffer.New[string](1024)
buf.Insert("alice")
buf.Insert("bob")
Iterating elements
foritem:=rangebuf.All() {
// ...
}

License

The cattlecloud.net/go/circlebuffer module is open source under the BSD license.

About

A circular buffer implementation in Go with support for generics.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages