macOS install and setup
suggest changeInstall the current package from go.dev/dl or use Homebrew:
brew install go
Verify the installation:
go version
go env GOPATH GOBIN
Source code may live anywhere. If GOBIN is unset, go install writes commands to $(go env GOPATH)/bin; add that directory to your shell's PATH if needed:
export PATH="$PATH:$(go env GOPATH)/bin"
Put the export in the startup file for your shell, such as ~/.zshrc.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents