Deleted golang, but does go command still work?

I am running Mac OSX Yosemite.

I am trying to upgrade from golang 1.4 to golang 1.6. I removed golang, but I noticed that I can still run the go go version = go1.4.2 darwin/amd64 . Why is this so?

Directions are not very clear IMO. They say

  • To remove an existing Go installation, usually it is / usr / local / go (done) Delete etc / paths.d / go
  • I edited bash by running go version go1.4.2 darwin/amd64
-one
terminal go macos
source share
3 answers

I ran source ~/.bash_profile and updated the env variables.

+1
source share

I ran into the same problem. I ended up with this solution:

 cd /usr/local/bin rm go 

Deletes the 'go' command

Then go back to golang.org and re-download the latest version, run the installer, and when you run the 'go' command, it will display 1.12.9 (at the time of writing this post).

+1
source share

You can try this

 sudo apt-get remove golang-go 

Then do it

 sudo apt-get remove --auto-remove golang-go 
0
source share

All Articles