Pretty much the title. I downloaded/installed Go 1.8 for OS X, but when I go
$ go version
go version go1.7.5 darwin/amd64
My .bashrc look like
You obviously have an old version of Go installed, else you couldn't see go version go1.7.5 darwin/amd64
as the output of go version
.
IDEs might have more advanced method of detecting Go installations other that simply scanning PATH
and GOROOT
(and that's why your IDE found and suggested the newer Go 1.8).
Execute which go
, and you'll see where your old Go resides. Remove it (and references to it).
Note that in your .bashrc
you're appending the proper Go bin
folder to the end of PATH
:
export PATH=$PATH:/usr/local/go/bin
Which means if PATH
contains the bin
folder of the old Go installation (very likely), that is used to execute the go
command.