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
+5.7k Python : Print unicode escape characters and string
+12.3k Golang : calculate elapsed run time
+11.4k Golang : Characters limiter example
+7.8k Golang : get the current working directory of a running program
+7.1k Golang : Takes a plural word and makes it singular
+9.2k Golang : How to capture return values from goroutines?
+30.2k Golang : Get time.Duration in year, month, week or day
+14.5k Golang : How to filter a map's elements for faster lookup
+12.3k Golang : Detect user location with HTML5 geo-location
+13.2k Golang : Handle or parse date string with Z suffix(RFC3339) example
+5.3k Golang : Customize scanner.Scanner to treat dash as part of identifier
+5.4k Swift : Convert string array to array example