This commit is contained in:
2019-11-05 15:57:09 +08:00
commit 5ed139e0a5
10 changed files with 912 additions and 0 deletions

9
bufferpool/bufferpool.go Normal file
View File

@@ -0,0 +1,9 @@
package bufferpool
import "go.uber.org/zap/buffer"
var (
_pool = buffer.NewPool()
// Get retrieves a buffer from the pool, creating one if necessary.
Get = _pool.Get
)