Setup Golang Workspace (My ZSH Configuration)
Download & Install
https://go.dev/dl/go1.19.10.darwin-arm64.pkg
Update your shell profile
Go expects the path of the go workspace as the $GOPATH
environment variable.
So you need to set up two environments to add the following two lines to your ~/.zshrc
or ~/.bashrc
or ~/.profile
: