| 14 | func PutBuffer(x *bytes.Buffer) { bufPool.Put(x) } |
| 15 | |
| 16 | type BufferPool interface { |
| 17 | Get() *bytes.Buffer |
| 18 | Put(x *bytes.Buffer) |
| 19 | } |
| 20 | |
| 21 | // NewBuffer returns a buffer pool. The max specify the max capacity of the Buffer the pool will |
| 22 | // return. If the Buffer becoomes large than max, it will no longer be returned to the pool. If |
no outgoing calls
no test coverage detected