Created
April 4, 2020 20:29
-
-
Save monkrus/a23dcf36b1bb7a605c92bfd1787e3605 to your computer and use it in GitHub Desktop.
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" | |
| "net/http" | |
| ) | |
| func main() { | |
| resp, err := http.Get("http://google.com/") | |
| if err != nil { | |
| fmt.Println(err) | |
| return | |
| } | |
| fmt.Println(resp) | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment