// GzipDecompress decompresses the given base64-encoded string with GZIP.
GzipDecompress decompresses the given base64-encoded string with GZIP.
// GzipDecompress decompresses the given base64 - encoded string with GZIP .
func GzipDecompress(content string) ([]byte, error) {
	compressedBytes, err := base64.StdEncoding.DecodeString(content)
	if err != nil {
		return nil, fmt.Errorf("base64 decode content: %w", err)
	}
	buf := bytes.NewBuffer(compressedBytes)
	zr, err := gzip.NewReader(buf)
	if err != nil {
		return nil, fmt.Errorf("new gzip reader: %w", err)
	}
	decompressedBytes, err := ioutil.ReadAll(zr)
	if err != nil {
		return nil, fmt.Errorf("gzip decompress: %w", err)
	}
	return decompressedBytes, nil
}
func GzipDecompress ( content string ) ( [ ] byte , error ) { compressedBytes , err := base64 . StdEncoding . DecodeString ( content ) if err != nil { return nil , fmt . Errorf ( " " , err ) } buf := bytes . NewBuffer ( compressedBytes ) zr , err := gzip . NewReader ( buf ) if err != nil { return nil , fmt . Errorf ( " " , err ) } decompressedBytes , err := ioutil . ReadAll ( zr ) if err != nil { return nil , fmt . Errorf ( " " , err ) } return decompressedBytes , nil }
GzipDecompress decompresses the given base64-encoded string with GZIP.
GzipDecompress decompresses the given base64 - encoded string with GZIP .