title: How to package go project for homebrew
body: <p>We're developing <a href="https://github.com/runscripts/runscripts">runscripts</a> and try to support something like <code>brew install runscripts</code>.</p>
  
  <p>It's written in golang and have some dependencies which required to <code>go get</code>. Now I have no idea to write the Formula to setup GOPATH and run <code>go get</code>. Our project can be compiled into an binary but we need <code>run --init</code> to install it.</p>
  
  <p>Can anyone helps to give an example about a homebrew Formula of go project?</p>