Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BufferPool ¶
type BufferPool struct {
// contains filtered or unexported fields
}
BufferPool is a sync.Pool for bytes.Buffer objects
func (*BufferPool) Get ¶
func (bp *BufferPool) Get() *bytes.Buffer
Get returns a bytes.Buffer from the specified pool
func (*BufferPool) Release ¶
func (bp *BufferPool) Release(buf *bytes.Buffer)
Release puts the given bytes.Buffer back in the specified pool after resetting it
Click to show internal directories.
Click to hide internal directories.