'go install' will not find package "fmt"
<p>I installed go 1.7.4 by untarring it into ~/go and setting GOROOT accordingly. I also created ~/work/src/github.com/user/hello and set GOPATH accordingly.</p>

<p>When trying the hello world example from <a href="https://golang.org/doc/install#testing" rel="nofollow noreferrer">https://golang.org/doc/install#testing</a> I get the following error:</p>

<pre><code>$ go install github.com/user/hello
    ../work/src/github.com/user/hello/hello.go:3:8: cannot find package "fmt" in any of:
    /home/user/go/src/pkg/fmt (from $GOROOT)
    /home/user/work/src/fmt (from $GOPATH)
package github.com/user/hello
    imports runtime: cannot find package "runtime" in any of:
    /home/user/go/src/pkg/runtime (from $GOROOT)
    /home/user/work/src/runtime (from $GOPATH)
</code></pre>

<p>Checking ~/go, I find fmt in ~/go/src/fmt and not ~/go/src/pkg/fmt</p>

<p>It feels like I am missing something crucial. Thankful for assistance.</p>