Skip to content

Instantly share code, notes, and snippets.

@randypitcherii
Created August 12, 2018 21:27
Show Gist options
  • Select an option

  • Save randypitcherii/0ca71d991873e63d9703936f29cfbafc to your computer and use it in GitHub Desktop.

Select an option

Save randypitcherii/0ca71d991873e63d9703936f29cfbafc to your computer and use it in GitHub Desktop.
Shell Customization - Golang
# Golang setup
export GOVERSION=$(brew list go | head -n 1 | cut -d '/' -f 6)
export GOROOT=$(brew --prefix)/Cellar/go/${GOVERSION}/libexec
export GOPATH="$HOME/go"
export PATH=$PATH:$GOPATH/bin
export GOPATH="$GOPATH:$(echo ~)/projects/tempus-edge/lib/go"
export GOPATH="$GOPATH:$(echo ~)/projects/tempus-edge/applications/mqtt-client-go"
export GOPATH="$GOPATH:$(echo ~)/projects/tempus-edge/protobuf-definitions/go-protobuf-output"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment