1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-06 03:53:50 +08:00
This commit is contained in:
synodriver 2021-06-23 13:06:23 +08:00
parent 63e1508815
commit ee3580039b

View File

@ -11,7 +11,7 @@ var bufferPool = sync.Pool{
}, },
} }
// NewBuffer 从池获取新 bytes.Buffer // NewBuffer 从池获取新 bytes.Buffer
func NewBuffer() *bytes.Buffer { func NewBuffer() *bytes.Buffer {
return bufferPool.Get().(*bytes.Buffer) return bufferPool.Get().(*bytes.Buffer)
} }