Uninstalling Go Completely
In this article, we'll delve into the proper procedure to uninstall Go from your system.
The previous solution attempted to resolve a similar issue, but it didn't yield the desired results. As indicated in the question, the command "which go" still returns a path to the Go binary.
Identifying the Installations
It's possible that you installed Go in multiple locations. The output of "which go" suggests that you have Go installed in "/usr/local/go/bin/go." Additionally, you mentioned another installation in a folder named "gocode."
Uninstallation Steps
To successfully uninstall Go, follow these steps:
Alternative Solution (August 2019 Update)
The official Go documentation now provides clear instructions for uninstalling Go. To follow this approach:
Run the following commands:
Reinstall Go using a package manager like Homebrew:
This will remove the existing Go installation and install a fresh version in the correct location.
The above is the detailed content of How Do I Completely Uninstall Go from My System?. For more information, please follow other related articles on the PHP Chinese website!