всички настройки
bullseye  ] [  bookworm  ] [  trixie  ] [  sid  ]
[ Източник: golang-github-shenwei356-bpool  ]

Пакет: golang-github-shenwei356-bpool-dev (0.0~git20160710.f9e0ee4-2)

Връзки за golang-github-shenwei356-bpool-dev

Screenshot

Ресурси за Debian:

Изтегляне на пакет-източник golang-github-shenwei356-bpool.

Отговорници:

Външни препратки:

Подобни пакети:

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
             capacity of buffers issued from the pool and discards
             buffers that have grown too large upon return.

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.ResponseWriter, which helps to avoid writing incomplete or malformed data to the response.

Изтегляне на golang-github-shenwei356-bpool-dev

Изтегляне за всички налични архитектури
Архитектура Големина на пакета Големина след инсталиране Файлове
all 4,5 кБ22,0 кБ [списък на файловете]