Registry / utility / vmihailenco-bufpool

vmihailenco-bufpool

JSON →
library0.1.11gogounverified

A buffer pool for Go, providing reusable byte buffers to reduce memory allocations.

go get github.com/vmihailenco/bufpool
INSTALL
IMPORT
SIG · VMIHAILENCO-BUFPOO
V
vmihailenco-bufpool
utilitygov0.1.11
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

bufpool
github.com/vmihailenco/bufpool

Get and use a buffer from the pool

package main import ( "fmt" "github.com/vmihailenco/bufpool" ) func main() { pool := bufpool.New(1024) buf := pool.Get() defer pool.Put(buf) buf.WriteString("hello") fmt.Println(buf.String()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.11latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
vmihailenco-bufpool — go get vmihailenco-bufpool · libregistry