Discover Packages
github.com/anacrolix/missinggo/v2
slicepool
package
Version:
v2.8.0
Opens a new window with list of versions in this module.
Published: Oct 8, 2024
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Pool[T any ] struct {
}
func (me *Pool [T]) Get() (ret *[]T)
Get one of whatever is available. If there's no indication of required cap, then presumably
pushing an item later will help raise the caps present in the pool.
func (me *Pool [T]) Put(b *[]T)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.