Skip to content

Instantly share code, notes, and snippets.

@mogeta mogeta/no_goroot
Created Aug 13, 2013

Embed
What would you like to do?
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
You can’t perform that action at this time.