On fedora 22, I found that all the standard go libraries aren't visible on the path for go.
NOTE I have indeed cleaned my system of golang - so I'm pretty sure it's not a mixed package versioning problem which often can happen when upgrading go.
NOTE The version of go I've installed is 1.4.2
I have been setting GOROOT=/usr/lib/golang, and GOPATH=(anything).
What internal directories in /usr/lib/golang should I look into to troubleshoot the missing libraries?
A simple example of the failures I'm getting are below...
[jay@rhbd gopath]$ go get github.com/golang/example/hello
package github.com/golang/example/hello
imports fmt: unrecognized import path "fmt"
package github.com/golang/example/hello
imports runtime: unrecognized import path "runtime"
and the corresponding go env:
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/jay/gopath/"
GORACE=""
GOROOT="/usr/lib/golang"
GOTOOLDIR="/usr/lib/golang/pkg/tool/linux_amd64"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
CXX="g++"
CGO_ENABLED="1"
UPDATE
As per the comments in this thread... It looks like I don't have ANYTHING under /usr/lib/golang/src. Does this basically imply that my Go distribution is broken? If so maybe the Go binary should fail fast when this is the case... ?