Last active
April 7, 2016 03:41
-
-
Save cjfshaw/85c4872b342d7473d5fb7d83584bb8f4 to your computer and use it in GitHub Desktop.
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
package main | |
import ( | |
"fmt" | |
//"io/ioutil" | |
"net/http" | |
) | |
func main() { | |
exampleLink := "http://example.com" | |
//fmt.Println(gutenbergBook) | |
response, err := http.Get(exampleLink) | |
response.Body.Close() | |
if err != nil { | |
fmt.Printf("Error from http.get: %s ", err) | |
} | |
} |
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
GOARCH="amd64" | |
GOBIN="" | |
GOEXE="" | |
GOHOSTARCH="amd64" | |
GOHOSTOS="linux" | |
GOOS="linux" | |
GOPATH="/home/cshaw/dev" | |
GORACE="" | |
GOROOT="/usr/local/go" | |
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64" | |
GO15VENDOREXPERIMENT="1" | |
CC="gcc" | |
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0" | |
CXX="g++" | |
CGO_ENABLED="1" |
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
go run exampleLink.go | |
# command-line-arguments | |
/usr/local/go/pkg/tool/linux_amd64/link: cannot open file /usr/local/go/pkg/linux_amd64/math/big.a: open /usr/local/go/pkg/linux_amd64/math/big.a: permission denied |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment