Registry / utility / oxtoacart-bpool

oxtoacart-bpool

JSON →
library0.0.0-20190530202638-03653db5a59cgogounverified

Package bpool implements leaky pools of byte arrays and Buffers as bounded channels.

go get github.com/oxtoacart/bpool
INSTALL
IMPORT
SIG · OXTOACART-BPOOL
O
oxtoacart-bpool
utilitygov0.0.0-20190530202638-03653db5a59c
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.

bpool
github.com/oxtoacart/bpool

Gets a buffer from pool, writes to it, and returns it.

package main import ( "bytes" "fmt" "github.com/oxtoacart/bpool" ) func main() { pool := bpool.NewBufferPool(10) buf := pool.Get() buf.WriteString("hello") fmt.Println(buf.String()) pool.Put(buf) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20190530202638-03653db5a59clatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
oxtoacart-bpool — go get oxtoacart-bpool · libregistry