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
+11.4k Golang : How to calculate the distance between two coordinates using Haversine formula
+12.6k Golang : Fix cannot use buffer (type bytes.Buffer) as type io.Writer(Write method has pointer receiver) error
+7.8k Golang : How to get username from email address
+6.8k Golang : Tell color name with OpenCV example
+6.1k Golang : Check if one string(rune) is permutation of another string(rune)
+13.5k Golang : Missing Bazaar command
+14.1k Golang : How to add color to string?
+28.5k Golang : How to get HTTP request header information?
+4.2k Golang : The Tao of importing package
+33.6k Golang : Save image to PNG, JPEG or GIF format.
+10.6k Golang : Detect user location with HTML5 geo-location
+7.8k Golang : Intercept and compare HTTP response code example