hariprasadraja
10/3/2019 - 3:58 AM

go zlib reader

reads []byte into the zlib

	var reader io.Reader
	var UnCompressedData []byte
	zlibReader, err := zlib.NewReader(reader)
	defer func() { _ = zlibReader.Close() }()
	if err != nil {
		return err
	}

	_, _ = zlibReader.Read(UnCompressedData)