Documentation
¶
Overview ¶
Package pool provides pools for scratch slices.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Slice ¶
type Slice[T any] struct { // contains filtered or unexported fields }
Slice is a pool of slices with element type T. The zero value is ready to use.
func (*Slice[T]) Get ¶
Get returns a slice of length n with all elements set to the zero value of T.
func (*Slice[T]) GetUncleared ¶
GetUncleared returns a slice of length n. Its elements have unspecified values.
Click to show internal directories.
Click to hide internal directories.