MCPcopy
hub / github.com/labstack/echo / gzipCompressPool

Function gzipCompressPool

middleware/compress.go:216–226  ·  view source on GitHub ↗
(config GzipConfig)

Source from the content-addressed store, hash-verified

214}
215
216func gzipCompressPool(config GzipConfig) sync.Pool {
217 return sync.Pool{
218 New: func() any {
219 w, err := gzip.NewWriterLevel(io.Discard, config.Level)
220 if err != nil {
221 return err
222 }
223 return w
224 },
225 }
226}
227
228func bufferPool() sync.Pool {
229 return sync.Pool{

Callers 1

ToMiddlewareMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…