Versions in this module Expand all Collapse all v1 v1.2.10 Dec 12, 2025 Changes in this version + type BufferPool struct + func NewBufferPool() *BufferPool + func (p *BufferPool) Get() *bytes.Buffer + func (p *BufferPool) Put(buf *bytes.Buffer) + type ByteSlicePool struct + func NewByteSlicePool(size int) *ByteSlicePool + func (p *ByteSlicePool) Get() []byte + func (p *ByteSlicePool) Put(b []byte) + type MapPool struct + func NewMapPool[K comparable, V any]() *MapPool[K, V] + func (p *MapPool[K, V]) Get() map[K]V + func (p *MapPool[K, V]) Put(m map[K]V) + type ObjectPool struct + func NewObjectPool[T any](new func() T, reset func(T)) *ObjectPool[T] + func (p *ObjectPool[T]) Get() T + func (p *ObjectPool[T]) Put(obj T) + type SlicePool struct + func NewSlicePool[T any](initialCap int) *SlicePool[T] + func (p *SlicePool[T]) Get() []T + func (p *SlicePool[T]) Put(s []T)