top

package ringbuffer implements a sequential compact FIFO and LILO. Also called a Queue. To Use:

        type myThing ringbuffer.RingElement
        var whatever == myThing("whatever") // Assuming a conversion from string.
        rb := RingBuffer.New(40)
        rb.Write(myThing) // Et cetera
        aThing := rb.Read()
        for 0 < rb.Size() {
            doSomethingWith(rb.Read())
        }

THIS IS NOT CONCURRENT —— ONE GOROUTINE ONLY.

Test imports 1 package(s)

  1. github.com/smartystreets/goconvey/convey