Skip to content

Instantly share code, notes, and snippets.

@mogeta
Created August 13, 2013 05:48
Show Gist options
  • Save mogeta/6218209 to your computer and use it in GitHub Desktop.
Save mogeta/6218209 to your computer and use it in GitHub Desktop.
if you run "go run hello.go" without setting GOROOT
go run hello.go
hello.go:4:2: cannot find package "fmt" in any of:
/usr/local/etc/src/pkg/fmt (from $GOROOT)
/Users/mogetta/Documents/go/src/fmt (from $GOPATH)
package runtime: cannot find package "runtime" in any of:
/usr/local/etc/src/pkg/runtime (from $GOROOT)
/Users/mogetta/Documents/go/src/runtime (from $GOPATH)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment