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 689 packages. Updated 2018-06-02. Refresh now. Tools for package owners.