Skip to content

lestrrat-go/bufferpool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages