Skip to content

Instantly share code, notes, and snippets.

@nesterchung
Created June 8, 2018 09:08
Show Gist options
  • Save nesterchung/5f51c0eee012f30d07036f80d67f1ad2 to your computer and use it in GitHub Desktop.
Save nesterchung/5f51c0eee012f30d07036f80d67f1ad2 to your computer and use it in GitHub Desktop.
go quick install
= 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