package cypress

import "sync"

var pbBufPool sync.Pool

func init() {
	pbBufPool.New = newBuf
}

func newBuf() interface{} {
	return make([]byte, 128)
}

package cypress

import "sync"

var pbBufPool sync.Pool

func init() {
	pbBufPool.New = func() interface{} {
		return make([]byte, 128)
	}
}

Use a closure rather than a standalone func
Use a closure rather than a standalone func
