Last active
November 12, 2019 13:47
-
-
Save zafer06/5c5e65e65a353ee1b61c2b9a5507a863 to your computer and use it in GitHub Desktop.
Go ile get istegi yapmak...
This file contains hidden or 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
| package main | |
| import ( | |
| "fmt" | |
| "io/ioutil" | |
| "net/http" | |
| ) | |
| func main() { | |
| res, _ := http.Get("https://jsonplaceholder.typicode.com/todos/1") | |
| body, _ := ioutil.ReadAll(res.Body) | |
| raw := string(body) | |
| fmt.Println(raw) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment