An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# builderpool
[![Test](https://github.com/nasa9084/go-builderpool/actions/workflows/test.yml/badge.svg)](https://github.com/nasa9084/go-builderpool/actions/workflows/test.yml)
[![Go Reference](https://pkg.go.dev/badge/github.com/nasa9084/go-builderpool.svg)](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)

// ...
}
```