Created
February 19, 2018 13:16
-
-
Save heat/4a6c9aae7243b92fb2dfa3e58493ca3b to your computer and use it in GitHub Desktop.
Como ler um response em go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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