Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Buf ¶ added in v0.21.1
type Buf[T any] struct { // contains filtered or unexported fields }
func New ¶
创建池
NewF: func() *T 新值
InUse func(*T) bool 是否在使用
ReuseF func(*T) *T 重用前处理
PoolF func(*T) *T 入池前处理
maxsize int 池最大数量
Click to show internal directories.
Click to hide internal directories.