- GOROOT should be ~/go
- Check out projects under
~/go/src/<github.com>/<github user>/<repo>
- Install as plugin
- https://github.com/go-lang-plugin-org/go-lang-idea-plugin/wiki/v1.0.0-Setup-initial-project
brew update
- `brew (re)install go --cross-compile-all
- Export GOPATH (in bash_it or .bashrc) to
$HOME/go
- cd to repo
- `GOOS=linux GOARCH=amd64 go install
- This creates the executable in $GOROOT/bin/
- https://golang.org/doc/install/source#environment
- http://stackoverflow.com/questions/20728767/all-possible-goos-value
- https://godoc.org/github.com/constabulary/gb/cmd/gb
gb build
-> dumps files under bin in project