Created
June 8, 2018 09:08
-
-
Save nesterchung/5f51c0eee012f30d07036f80d67f1ad2 to your computer and use it in GitHub Desktop.
go quick install
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= install on mac = | |
== Install == | |
1. `brew update && brew upgrade` | |
2. `brew install go` or `brew install go` | |
== env settings == | |
1. GOROOT | |
add to your bashrc or zshrc | |
``` | |
# go | |
export GOROOT=`brew --prefix go`/libexec | |
export PATH=$PATH:$GOROOT/bin | |
``` | |
2. GOPATH | |
``` | |
mkdir $HOME/go | |
echo export GOPATH=$HOME/go >> .zshrc | |
``` | |
check verison & env | |
go version | |
go env |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment