mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-09-03 00:41:55 +03:00
Formatting with gofumpt
This commit is contained in:
@@ -5,13 +5,11 @@ import (
|
||||
"sync"
|
||||
)
|
||||
|
||||
var (
|
||||
bytesPool = sync.Pool{
|
||||
New: func() any {
|
||||
return &bytes.Buffer{}
|
||||
},
|
||||
}
|
||||
)
|
||||
var bytesPool = sync.Pool{
|
||||
New: func() any {
|
||||
return &bytes.Buffer{}
|
||||
},
|
||||
}
|
||||
|
||||
func acquireBuffer() *bytes.Buffer {
|
||||
return bytesPool.Get().(*bytes.Buffer)
|
||||
|
||||
Reference in New Issue
Block a user