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
+51.6k Golang : How to get time in milliseconds?
+16.5k Golang : Get the IPv4 and IPv6 addresses for a specific network interface
+4.7k Golang : Calculate a pip value and distance to target profit example
+28.2k Get file path of temporary file in Go
+24.8k Golang : Generate MD5 checksum of a file
+26.5k Golang : Convert file content into array of bytes
+12.8k Golang : List objects in AWS S3 bucket
+6.2k Grep : How to grep for strings inside binary data
+4.3k Javascript : Detect when console is activated and do something about it
+10.4k Golang : Underscore string example
+10.1k Golang : Convert file unix timestamp to UTC time example
+11.1k Golang : Post data with url.Values{}