title: How do I kill a goroutine
body: <p>I have the following setup: </p>
  
  <pre><code>func startsMain (){
      go main ()
  }
  
  fun stopMain (){
      //kill main
  }
  
  func main() {
      //infinite loop 
  }
  </code></pre>
  
  <p>I am creating cucumber steps and I need to be able to start and shut down the application.</p>