Install Golang
This is how you can install Golang on different platforms.
Golang Install - Linux
Download the version for your system here: https://go.dev/dl/
Remove any existing installation:
sudo rm -rf /usr/local/go
Unpack the package here:
sudo tar -C /usr/local -xzf go1.20.5.linux-amd64.tar.gz
Setup the path for you own user here:
echo "export PATH=\$PATH:/usr/local/go/bin" >> ~/.bashrc
Setup the path for all users here:
echo "export PATH=\$PATH:/usr/local/go/bin" >> /etc/profile
Verify:
go version
Golang Install - Mac OS
Download the version for your system here: https://go.dev/dl/
Just install the package. You might need to open a fresh terminal afterwards to have the correct PATH.
Verify:
go version
Golang Install - Windows
Download the version for your system here: https://go.dev/dl/
Just install the package. You might need to open a fresh terminal afterwards to have the correct PATH.
Verify:
go version