Uncompress gzip from byte array in golang
问题 I have a bunch of files that come from some web requests, and some are gziped, i need to unpack them and print them as a string. This is the first time I try using golang, I tried some examples I found online but can't get it working. Here's the last test I was trying: package main import ( "bytes" "compress/gzip" "fmt" "io/ioutil" ) func main() { content := []byte{72,84,84,80,47,49,46,49,32,50,48,48,32,79,75,13,10,84,114,97,110,115,102,101,114,45,69,110,99,111,100,105,110,103,58,32,99,104