Minimalist ring buffer in Go