mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-08 04:55:55 +08:00
commit
bddada66dc
@ -11,7 +11,7 @@ var bufferPool = sync.Pool{
|
||||
},
|
||||
}
|
||||
|
||||
// NewBuffer 从池钟获取新 bytes.Buffer
|
||||
// NewBuffer 从池中获取新 bytes.Buffer
|
||||
func NewBuffer() *bytes.Buffer {
|
||||
return bufferPool.Get().(*bytes.Buffer)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user