package
0.0.0-20240916140616-558c04120a4e
Repository: https://github.com/cloudflare/golibs.git
Documentation: pkg.go.dev

# README

CircularBuffer

A golang implementation of circular buffer data structure. It can be used as a fixed size queue or stack.

To install:

go get github.com/cloudflare/golibs/circularbuffer

To test:

cd $GOPATH/src/github.com/cloudflare/golibs/circularbuffer
make test

# Functions

Create CircularBuffer object with a prealocated buffer of a given size.

# Structs

No description provided by the author

# Interfaces

An interface used to get items from the stack.
An interface used to add things to the stack.