title: How do I properly install protoc-gen-go on Ubuntu?
body: <p>I managed to download and install Go on Ubuntu. However, I'm currently unable to set up protoc-gen-go properly because my GOPATH and GOROOT are not properly defined. Here's what my GOROOT and GOPATH look like:</p>
  
  <pre><code>export GOROOT=/usr/local/go
  export PATH=$PATH:$GOROOT/bin
  export GOPATH=$HOME/go
  export GOBIN=$GOPATH/bin
  export PATH=$PATH:$GOROOT:$GOPATH:$GOBIN
  export PATH="$PATH:$HOME/.local/bin"
  export PATH=$PATH:$GOPATH/bin
  export GO_PATH=~/go
  export PATH=$PATH:/$GO_PATH/bin
  </code></pre>