環境是 MAC @ OSX 10.11.5
1. brew update
2. brew install go
3. mkdir ~/.go
=> 之後用 go get 的東西,都放在這
4. 新增相關設定到 ~/.bashrc
# go setting
export GOPATH=$HOME/.go
export GOROOT=/user/local/opt/go/libexec
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:$GOROOT/bin
沒有留言:
張貼留言