You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: compressor_pools.go
    path of file: ./repos/kubeedge/vendor/github.com/emicklei/go-restful
    
    the code of the file until where you have to start completion: package restful

// Copyright 2015 Ernest Micklei. All rights reserved.
// Use of this source code is governed by a license
    
func newGzipWriter() *gzip.Writer {
	// create with an empty bytes writer; it will be replaced before using the gzipWriter
	writer, err := gzip.NewWriterLevel(new(bytes.Buffer), gzip.BestSpeed)
	if err != nil {
		panic(err.Error())
	}
	return writer
}