OS X Yosemite with all patches. Installed go with
brew install go --cross-compile-common
Created ~/work, setup environments like this:
export GOPATH=$HOME/work
export GOROOT='/usr/local/Cellar/go/1.6'
export PATH=$PATH:$GOROOT/bin
Now attempt to add a package gives me an error:
go get golang.org/x/tools/cmd/godoc
package archive/zip: unrecognized import path "archive/zip" (import path does not begin with hostname)
package bytes: unrecognized import path "bytes" (import path does not begin with hostname)
package encoding/json: unrecognized import path "encoding/json" (import path does not begin with hostname)
package encoding/xml: unrecognized import path "encoding/xml" (import path does not begin with hostname)
package errors: unrecognized import path "errors" (import path does not begin with hostname)
package expvar: unrecognized import path "expvar" (import path does not begin with hostname)
package flag: unrecognized import path "flag" (import path does not begin with hostname)
package fmt: unrecognized import path "fmt" (import path does not begin with hostname)
...
Does Go support OS X 10.10? What did I miss here?