Set up golang project on m3 (2025)
Download pkg files from golang website.
I’ll follow current k8s golang version, not patch version.
- The package installs the Go distribution to /usr/local/go.
- The package should put the /usr/local/go/bin directory in your PATH environment variable.
I’ll add GO_PATH to ~/.zshrc
❯ echo -e "\n# Add Go to PATH\nexport PATH=\$PATH:/usr/local/go/bin" >> ~/.zshrc
❯ source ~/.zshrc
Then check golang version
❯ go version
go version go1.23.6 darwin/arm64