Uninstall Go from Mac
Uninstalling Golang from Mac OSX machine can be done easily. All you to do is the remove this directory /usr/local/go
Doing this will remove the binaries for Golang but not the residue files which you have installed elsewhere.
To remove the additional files, you need to check the environment variables for GOPATH and GOROOT. Those the files that you need to delete as well if you plan to remove Golang entirely.
If you plan to upgrade Go, you don't have to remove the previous version of Go manually. It will be removed when you install the latest version of Go lang.
For example, you will get an alert message that the previous Go version will be removed when upgrading to Go on a Mac OS X.
Hope this tutorial is useful ... but hope you will continue to use and learn Go.
By Adam Ng
IF you gain some knowledge or the information here solved your programming problem. Please consider donating to the less fortunate or some charities that you like. Apart from donation, planting trees, volunteering or reducing your carbon footprint will be great too.
Advertisement
Tutorials
+8.5k Golang : Copy map(hash table) example
+13.9k Golang : How to get Unix file descriptor for console and file
+29.2k Golang : Interpolating or substituting variables in string examples
+40.2k Golang : Convert string to array/slice
+6.7k Golang : Test if an input is an Armstrong number example
+14.1k Golang : How do I get the local IP (non-loopback) address ?
+11.2k Golang : Search and extract certain XML data example
+12.6k Golang : How to determine if a year is leap year?
+18.2k Golang : Delete item from slice based on index/key position
+6.1k Golang : Accessing dataframe-go element by row, column and name example
+3.8k Nginx and PageSpeed build from source CentOS example