hugo: Index | Files

package bufferpool

import ""

Package bufferpool provides a pool of bytes buffers.


Package Files


func GetBuffer Uses

func GetBuffer() (buf *bytes.Buffer)

GetBuffer returns a buffer from the pool.

func PutBuffer Uses

func PutBuffer(buf *bytes.Buffer)

PutBuffer returns a buffer to the pool. The buffer is reset before it is put back into circulation.

Package bufferpool imports 2 packages (graph) and is imported by 287 packages. Updated 2019-08-12. Refresh now. Tools for package owners.