Versions in this module Expand all Collapse all v2 v2.0.0 Aug 10, 2022 Changes in this version + type BufferPool struct + func NewBufferPool(maxBufferNum, initBufferSize int) *BufferPool + func (bp *BufferPool) Get() *bytes.Buffer + func (bp *BufferPool) Put(buf *bytes.Buffer) + type ClearFunc func(interface{}) + type CreateFunc func() interface + type GoRoutinePool struct + func NewGoRoutinePool(maxGoRoutineNum int) *GoRoutinePool + func (goPool *GoRoutinePool) Run(f func()) + type ObjectPool struct + func NewObjectPool(maxObjectNum int, createObj CreateFunc, clearObj ClearFunc) *ObjectPool + func (op *ObjectPool) Get() interface{} + func (op *ObjectPool) Put(obj interface{}) Other modules containing this package github.com/antigloss/go