func GetCompressor(name string) Compressor {
	return registeredCompressor[name]
}
GetCompressor returns Compressor for the given compressor name.
package encoding
import (
	"io"
	"strings"
)
const Identity = "identity"
type Compressor interface {
	Compress(w io.Writer) (io.WriteCloser, error)
	Decompress(r io.Reader) (io.Reader, error)
	Name() string
}
var registeredCompressor = make(map[string]Compressor)
func RegisterCompressor(c Compressor) {
	registeredCompressor[c.Name()] = c
}