Install Go
Recommended Version
Use Go 1.23+. Download from: https://go.dev/dl/
Install by OS
Windows
- Download the
.msiinstaller from the official website. - Run the installer.
- Open CMD/PowerShell and verify:
bash
go versionmacOS
- Download the
.pkginstaller from the official website. - Run the installer.
- Verify in Terminal:
bash
go versionLinux
- Download the matching
.tar.gzpackage. - Extract to
/usr/local:
bash
sudo tar -C /usr/local -xzf go*.tar.gz- Add to PATH (
~/.bashrcor~/.zshrc):
bash
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin- Reload shell and verify:
bash
source ~/.bashrc
# or source ~/.zshrc
go versionGo Proxy (Optional)
If your network is slow, set GOPROXY:
bash
go env -w GOPROXY=https://goproxy.cn,direct
go env -w GOSUMDB=sum.golang.org
go env -w GO111MODULE=onCheck result:
bash
go env | grep GOPROXYNext Step
Proceed to Service Deployment.


