Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Growable ¶
type Growable[T any] struct { // contains filtered or unexported fields }
Growable represents a growable ring buffer in which we can add items to and it will resize to fit everything in it
However as we pop and dequeue items from it it will never shrink in size. This is useful for storing temporary lists without needing to allocate new slices constantly
func NewGrowable ¶
NewGrowable returns a growable ring buffer, that can be used as temporary storage
Click to show internal directories.
Click to hide internal directories.