Documentation
¶
Index ¶
Constants ¶
View Source
const ( // BufferSize is the size of each buffer in the pool (1kb) BufferSize = units.Kb )
Variables ¶
View Source
var Pool = sync.Pool{ New: func() interface{} { b := make([]byte, 0, BufferSize) return B(b) }, }
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.