Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultSize = 32 * 1024
Variables ¶
View Source
var ( Bytes BytesPool = &bytesPool{ Pool: sync.Pool{ New: func() interface{} { return make([]byte, DefaultSize) }, }, } Buffer BufferPool = &bufferPool{ Pool: sync.Pool{ New: func() interface{} { return bytes.NewBuffer(Bytes.Get()) }, }, } )
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.