Skip to content

Instantly share code, notes, and snippets.

@heat
Created February 19, 2018 13:16
Show Gist options
  • Save heat/4a6c9aae7243b92fb2dfa3e58493ca3b to your computer and use it in GitHub Desktop.
Save heat/4a6c9aae7243b92fb2dfa3e58493ca3b to your computer and use it in GitHub Desktop.
Como ler um response em go
body, err := ioutil.ReadAll(resp.Body)
if err != nil {
log.Fatal("ReadAll: ", err)
return
}
fmt.Printf("%s", body)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment