Registry / utility / gobwas-pool

gobwas-pool

JSON →
library0.2.1gogounverified

Package pool contains helpers for pooling structures distinguishable by size.

go get github.com/gobwas/pool
INSTALL
IMPORT
SIG · GOBWAS-POOL
G
gobwas-pool
utilitygov0.2.1
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.

pool
github.com/gobwas/pool

Creates a pool for byte slices of specific sizes and gets a buffer.

package main import ( "fmt" "github.com/gobwas/pool" ) func main() { p := pool.New(128, 256, 512) // pools for sizes 128, 256, 512 buf := p.Get(200) // gets a buffer of at least 200 bytes defer p.Put(buf) fmt.Printf("Buffer capacity: %d\n", cap(buf)) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Amazon
1
Resources
gobwas-pool — go get gobwas-pool · libregistry