Check your current Go versionYou can do this by running the following command in your terminal
go version
Download the latest Go releaseYou can download the latest Go release from the Go website:
https://golang.org/dl/
Uninstall your current Go installationIf you are using a Linux or macOS system, you can uninstall your current Go installation by running the following command:
sudo rm -rf /usr/local/go
Install the new Go releaseYou can install it by following the instructions in the Go installation documentation: