macOS install and setup

suggest change

Install 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.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents