Binary package “golang-github-shenwei356-bpool-dev” in ubuntu oracular
Buffer/Byte pool for Go (library)
This library implements leaky pools of byte arrays and Buffers as bounded
channels. It is based on the leaky buffer example from the Effective
.
Bpool provides the following pool types:
.
BufferPool: fixed-size pool of bytes.Buffers
BytePool: fixed-size pool of byte slices with a pre-set width
SizedBufferPool: alternative to BufferPool that pre-sizes the
.
A common use case for this package is to use buffers
to execute HTML templates against (via ExecuteTemplate) or encode JSON
into (via json.NewEncoder). This allows you to catch any rendering
or marshalling errors prior to writing to a http.ResponseWr
which helps to avoid writing incomplete or malformed data to the
response.
Published versions
- golang-github-shenwei356-bpool-dev 0.0~git20160710.f9e0ee4-3 in amd64 (Release)
- golang-github-shenwei356-bpool-dev 0.0~git20160710.f9e0ee4-3 in arm64 (Release)
- golang-github-shenwei356-bpool-dev 0.0~git20160710.f9e0ee4-3 in armhf (Release)
- golang-github-shenwei356-bpool-dev 0.0~git20160710.f9e0ee4-3 in i386 (Release)
- golang-github-shenwei356-bpool-dev 0.0~git20160710.f9e0ee4-3 in ppc64el (Release)
- golang-github-shenwei356-bpool-dev 0.0~git20160710.f9e0ee4-3 in riscv64 (Release)
- golang-github-shenwei356-bpool-dev 0.0~git20160710.f9e0ee4-3 in s390x (Release)