Created
July 22, 2016 21:58
-
-
Save luismoramedina/b8201478a1d00862a5f93beb904556ab to your computer and use it in GitHub Desktop.
http connection in go
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" | |
import "net/http" | |
func main() { | |
resp, error := http.Get("https://www.google.com/") | |
fmt.Println(resp) | |
fmt.Println(error) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment