Registry / utility / xuanwo-go-bufferpool

xuanwo-go-bufferpool

JSON →
library0.2.0gogounverified

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

go get github.com/Xuanwo/go-bufferpool
INSTALL
IMPORT
SIG · XUANWO-GO-BUFFERPO
X
xuanwo-go-bufferpool
utilitygov0.2.0
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.

bufferpool
github.com/Xuanwo/go-bufferpool

Creates a buffer pool, gets a buffer, writes to it, and returns it.

package main import ( "fmt" "github.com/Xuanwo/go-bufferpool" ) func main() { bp := bufferpool.New(1024) buf := bp.Get() defer bp.Put(buf) buf.WriteString("hello") fmt.Println(buf.String()) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
Resources
xuanwo-go-bufferpool — go get xuanwo-go-bufferpool · libregistry