{"id":50578,"library":"gobwas-pool","title":"gobwas Pool","description":"Package pool contains helpers for pooling structures distinguishable by size.","status":"active","version":"0.2.1","language":"go","source_language":null,"source_url":"https://github.com/gobwas/pool","tags":["pool","buffer","memory","performance"],"install":[{"cmd":"go get github.com/gobwas/pool","lang":"bash","label":"Install github.com/gobwas/pool"}],"dependencies":[],"imports":[{"symbol":"pool","correct":"github.com/gobwas/pool"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"github.com/gobwas/pool\"\n)\n\nfunc main() {\n\tp := pool.New(128, 256, 512) // pools for sizes 128, 256, 512\n\tbuf := p.Get(200)            // gets a buffer of at least 200 bytes\n\tdefer p.Put(buf)\n\tfmt.Printf(\"Buffer capacity: %d\\n\", cap(buf))\n}","lang":"go","description":"Creates a pool for byte slices of specific sizes and gets a buffer."},"warnings":[],"env_vars":null,"search_vec":"'buffer':14 'contain':5 'distinguish':10 'gobwa':1 'helper':6 'memori':15 'packag':3 'perform':16 'pool':2,4,8,13 'size':12 'structur':9","created_at":"2026-06-15T04:59:28.689726+00:00","updated_at":"2026-06-15T04:59:28.689726+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/gobwas/pool","github":"https://github.com/gobwas/pool","docs":"https://pkg.go.dev/github.com/gobwas/pool#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}