package
Version:
v0.0.0-...-4250c9e
Opens a new window with list of versions in this module.
Published: Nov 19, 2018
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type IntRing struct {
Items []int
CurrentIdx int
}
Provides a ring buffer of integers with a lightweight interface.
Returns an IntRing with a given size.
Push(item) adds the given item as the most recent item
overwriting the oldest item.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.