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
+24.4k Golang : Change file read or write permission example
+18.6k Golang : Implement getters and setters
+5.1k Golang : Print instead of building pyramids
+11.8k Golang : How to parse plain email text and process email header?
+6.5k Golang : Warp text string by number of characters or runes example
+5.7k Javascript : How to replace HTML inside <div>?
+9.8k Golang : Get current, epoch time and display by year, month and day
+12.1k Golang : Get remaining text such as id or filename after last segment in URL path
+4.6k Adding Skype actions such as call and chat into web page examples
+18k Golang : Put UTF8 text on OpenCV video capture image frame
+12k Golang : Save webcamera frames to video file