PHP » GoLang |
login |
register |
about
|
gzdecodegzdecode[code=golang] func Gzdecode() string { reader := bytes.NewReader(u.Content) gzreader, _ := gzip.NewReader(reader) output, _ := ioutil.ReadAll(gzreader) return string(output) } [/code] |