Skip to content

Instantly share code, notes, and snippets.

@thewoolleyman
Last active November 20, 2015 23:50
Show Gist options
  • Save thewoolleyman/96e766392743b4a20851 to your computer and use it in GitHub Desktop.
Save thewoolleyman/96e766392743b4a20851 to your computer and use it in GitHub Desktop.
golang_notes.md

golang notes

Env setup

  • GOROOT should be ~/go
  • Check out projects under ~/go/src/<github.com>/<github user>/<repo>

Jetbrains plugin

Installing

  • brew update
  • `brew (re)install go --cross-compile-all
  • Export GOPATH (in bash_it or .bashrc) to $HOME/go

Compiling

  • cd to repo
  • `GOOS=linux GOARCH=amd64 go install
  • This creates the executable in $GOROOT/bin/

All supported GOOS and GOARCH

Building with gb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment