:note

golang環境をつくる

% brew install go
==> Downloading https://homebrew.bintray.com/bottles/go-1.4.2.mavericks.bottle.2.tar.gz
Already downloaded: /Library/Caches/Homebrew/go-1.4.2.mavericks.bottle.2.tar.gz
==> Pouring go-1.4.2.mavericks.bottle.2.tar.gz
==> Caveats
As of go 1.2, a valid GOPATH is required to use the `go get` command:
  https://golang.org/doc/code.html#GOPATH

You may wish to add the GOROOT-based install location to your PATH:
  export PATH=$PATH:/usr/local/opt/go/libexec/bin

==> Summary
🍺  /usr/local/Cellar/go/1.4.2: 4566 files, 155M

GOROOTを GOROOT=/usr/local/opt/go/libexec

GOPATHを GOPATH=$HOME/.go

に設定

Writing Web Applications - The Go Programming Language

みながら勉強

 
comments powered by Disqus
back to top