/go-bytes-pool

Primary LanguageGoMIT LicenseMIT

go-bytes-pool

Simple []byte buffer pool for go backend by sync.Pool.

Go Reference

package main

import "github.com/IrineSistiana/go-bytes-pool"

func main() {
	p := NewPool(16) 
	b := p.Get(1024)
	p.Release(b)
}