Caution
github.com/ecnepsnai/ring is deprecated and replaced by git.ecn.io/ian/ring.
All users should migrate to git.ecn.io/ian/ring for continued updates. Tag v1.0.0 is drop-in compatible copy of the
last release of github.com/ecnepsnai/ring.
Package ring is a threadsafe rotating slice. You define a maximum number of items and for each added item, it will fill the slice up to that max, then begin to wrap around the start of the slice.
Examples can be found on the documentation for the library