hugo: github.com/spf13/hugo/bufferpool Index | Files

package bufferpool

import "github.com/spf13/hugo/bufferpool"

Package bufferpool provides a pool of bytes buffers.

Index

Package Files

bufpool.go

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 541 packages. Updated 2016-07-24. Refresh now. Tools for package owners.