compression.go
func (pool *GzipPool) GetWriter(dst io.Writer) (writer *gzip.Writer) {
	if w := pool.pool.Get(); w != nil {
		writer = w.(*gzip.Writer)
		writer.Reset(dst)
	} else {
		writer, _ = gzip.NewWriterLevel(dst, gzip.BestCompression)
	}
	return writer
}
func (pool *GzipPool) GetWriter(dst io.Writer) (writer *gzip.Writer) {
	if w := pool.pool.Get(); w != nil {
		writer = w.(*gzip.Writer)
		writer.Reset(dst)
	} else {
		writer, _ = gzip.NewWriterLevel(dst, gzip.BestCompression)
	}
	return writer
}
func ( pool * GzipPool ) GetWriter ( dst io . Writer ) ( writer * gzip . Writer ) { if w := pool . pool . Get ( ) ; w != nil { writer = w . ( * gzip . Writer ) writer . Reset ( dst ) } else { writer , _ = gzip . NewWriterLevel ( dst , gzip . BestCompression ) } return writer }
// GetWriter returns gzip.Writer from the pool, or creates a new one
// with gzip.BestCompression if the pool is empty.
GetWriter returns gzip . Writer from the pool or creates a new one with gzip . BestCompression if the pool is empty .