Documentation
¶
Overview ¶
Package ring provides circular data structures.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type List ¶
type List interface {
// Push pushes a value to the head of the buffer
Push(interface{})
// IterateForward iterates forward through the values starting at the tail.
// Iteration stops if the callback function returns false.
IterateForward(func(interface{}) bool)
// IterateBackward iterates backwards through the values starting at the head.
// Iteration stops if the callback function returns false.
IterateBackward(func(interface{}) bool)
// Len returns the number of items in the buffer
Len() int
}
List is a bounded circular list.
Click to show internal directories.
Click to hide internal directories.