Skip to content

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bufferpool

Very simple bytes.Buffer pool using sync.Pool.

Build Status

GoDoc

I got tired of writing the same sync.Pool for byte.Buffer objects.

SYNOPSIS

import "github.com/lestrrat-go/bufferpool"

var pool = bufferpool.New()

func main() {
    buf := pool.Get()
    defer pool.Release(buf)

    // ...
}

About

Very simple bytes.Buffer pool using sync.Pool

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages