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
+3.5k Golang : Sieve of Eratosthenes algorithm
+4.7k Golang : Convert int(year) to time.Time type
+3.1k Golang : Get final balance from bit coin address example
+3.3k Golang : Normalize email to prevent multiple signups example
+2.3k PHP : Convert string to timestamp or datestamp before storing to database(MariaDB/MySQL)
+1.9k Golang : Join lines with certain suffix symbol example
+18.7k Golang : How do I convert int to uint8?
+5.9k Golang : How to check if a file is hidden?
+16.1k Golang : Find biggest/largest number in array
+14k Golang : Set, Get and List environment variables
+6.3k Golang : How to detect a server/machine network interface capabilities?
+10.9k Golang : Check if directory exist and create if does not exist