pkg/httpx/form: Remove unuused fields

This commit is contained in:
Tom Wiesing 2023-01-24 10:51:39 +01:00
parent d235ee4e5c
commit 8af2213d5a
No known key found for this signature in database
2 changed files with 29 additions and 23 deletions

19
pkg/pools/bpool.go Normal file
View file

@ -0,0 +1,19 @@
package pools
import (
"strings"
"sync"
)
var builders = sync.Pool{
New: func() any { return new(strings.Builder) },
}
func GetBuilder() *strings.Builder {
return builders.Get().(*strings.Builder)
}
func ReleaseBuilder(builder *strings.Builder) {
builder.Reset()
builders.Put(builder)
}