package buffer type noPool struct{ allocSize int } type pool struct{} func newPool() *pool { return &pool{} } func (p noPool) Get() ([]byte, error) { return make([]byte, p.allocSize), nil } func (noPool) Put([]byte) { } func (p *pool) Get() ([]byte, error) { return nil, nil } func (p *pool) Put(b []byte) { }