title: How does golang create a buffer to pass to a C dll function?
body: <p>I need to invoke a C API from golang, which is from a dll.
  The problem is the C func need a buffer, how to create the 
  buffer in golang, then i can pass the buffer to the C func?</p>
  
  <pre><code>void fooGetString(char* buffer, int buffer length)
  </code></pre>