Documentation ¶
Overview ¶
Package ring provides an implementation of a ring buffer containing strings.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
Buffer represents a ring buffer. If the buffer is full, the last item in the buffer is replaced with the new item. Can only add entries to the buffer but never remove them.
Click to show internal directories.
Click to hide internal directories.