title: how to make golang execute a string
body: <p>I am not asking to make golang do some sort of "eval" in the current context, just need it to take a input string (say, received from network) and execute it as a separate golang program. </p>
  
  <p>In theory, when you run <code>go run testme.go</code>, it will read the content of <code>testme.go</code> into a string and parse, compile and execute it. Wonder if it is possible to call a go function to execute a string directly. Note that I have a requirement not to write the string into a file. </p>
  
  <p><strong>UPDATE1</strong></p>
  
  <p>I really want to find out if there is a function (in some go package) that serves as an entry point of go, in another word, I can call this function with a string as parameter, it will behave like <code>go run testme.go</code>, where testme.go has the content of that string.</p>