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
+18.5k Golang : Send email with attachment
+5.5k PHP : Fix Call to undefined function curl_init() error
+23.1k Golang : Print out struct values in string format
+29.7k Golang : Get and Set User-Agent examples
+12.6k Golang : Pass database connection to function called from another package and HTTP Handler
+29.3k Golang : Saving(serializing) and reading file with GOB
+9.1k Golang : Create and shuffle deck of cards example
+29k Golang : Get first few and last few characters from string
+6.5k Golang : How to determine if request or crawl is from Google robots
+5.8k Golang : List all packages and search for certain package
+6k Java : Human readable password generator
+10.5k Golang : Resolve domain name to IP4 and IP6 addresses.