찌로그
Start golang! (Install with brew in MacOS) 본문
Install go
brew install golang
Setup Workspace
It’s considered best practice to use $HOME/go location for your workspace, so let’s do that!
mkdir -p $HOME/go/{bin,src,pkg}
We created two important folders bin and src that’ll be used for GO
Setup Environment
나는 zsh 쓰고 있기때문에, ~/.zshrc 에 다음내용을 추가
export GOPATH=$HOME/go
export GOROOT="$(brew --prefix golang)/libexec"
export PATH="$PATH:${GOPATH}/bin:${GOROOT}/bin"
그리고 적용

Result
