Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RandomString ¶
RandomString returns a random string of length n.
Types ¶
type BufferPool ¶
BufferPool is sync pool for *bytes.Buffer
func (*BufferPool) Get ¶
func (bp *BufferPool) Get() *bytes.Buffer
Get checks out a buffer which must be put back in.
func (*BufferPool) Put ¶
func (bp *BufferPool) Put(b *bytes.Buffer)
Put reurns a buffer which was previously checked out.
Click to show internal directories.
Click to hide internal directories.