Install Go
- Visit go.dev/dl and download the latest stable version for your OS (e.g., Go 1.23+ as of 2026).
Linux/macOS:
wget https://go.dev/dl/go1.23.6.linux-amd64.tar.gz # Update to latest
sudo tar -C /usr/local -xzf go1.23.6.linux-amd64.tar.gz
mkdir -p ~/go/{bin,src,pkg}
export PATH=$PATH:/usr/local/go/bin:~/go/bin
Add exports to ~/.profile or ~/.bashrc.
Windows: Run the .msi installer and add Go to PATH.
- Verify installation:
Expected: go version go1.23.6 linux/amd64 (or similar).
- Install VS Code + Go extension:
- Download VS Code.
- Install Go extension.
- Test playground: Visit go.dev/play and run
fmt.Println("Hello, Go!").