https://github.com/nasa9084/go-builderpool
A simple strings.Builder pool using sync.Pool
https://github.com/nasa9084/go-builderpool
builder go golang goroutine-pool goroutine-safe strings
Last synced: 4 months ago
JSON representation
A simple strings.Builder pool using sync.Pool
- Host: GitHub
- URL: https://github.com/nasa9084/go-builderpool
- Owner: nasa9084
- License: mit
- Created: 2018-02-26T05:22:03.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-09-14T07:26:16.000Z (over 4 years ago)
- Last Synced: 2025-05-07T14:24:29.557Z (about 1 year ago)
- Topics: builder, go, golang, goroutine-pool, goroutine-safe, strings
- Language: Go
- Homepage:
- Size: 5.86 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# builderpool
[](https://github.com/nasa9084/go-builderpool/actions/workflows/test.yml)
[](https://pkg.go.dev/github.com/nasa9084/go-builderpool)
---
A simple strings.Builder pool using sync.Pool inspired by [lestrrat-go/bufferpool](https://github.com/lestrrat-go/bufferpool).
## SYNOPSIS
``` go
import "github.com/nasa9084/go-builderpool"
var pool = builderpool.New()
func main() {
builder := pool.Get()
defer pool.Release(builder)
// ...
}
```