title: Execute another go program from within a golang program
body: <p>I want to execute another go program from inside another go program and give it args, something like this:</p>
  
  <pre><code>package main
  func main() {
    //here I want to call a specific go file, e.g. test.go with args
  }
  </code></pre>
  
  <p>test.go</p>
  
  <pre><code>package main
  func main(x int) {
    //do stuff with x
  }
  </code></pre>
  
  <p>I don't want to sent an int as arg, but something like http.ResponseWriter</p>
  
  <p>A solution I thought off, but it wouldn't be really good:</p>
  
  <ol>
  <li>Use gob to convert the http.ResponseWriter into a string</li>
  <li>Read in a line from test.go</li>
  <li>Sent the string to test.go</li>
  </ol>
  
  <p>Thanks for any answers :D</p>