title: Tool to convert (translate) C to Go?
body: <p>What tool to use to convert C source code into Go source code?</p>
  
  <p>For example, if the C code contains:</p>
  
  <pre><code>struct Node {
      struct Node *left, *right;
      void        *data;
  };
  
  char charAt(char *s, int i) {
      return s[i];
  }
  </code></pre>
  
  <p>the corresponding Go code generated by the tool should be:</p>
  
  <pre><code>type Node struct {
      left, right *Node
      data        interface{}
  }
  
  func charAt(s string, i int) byte {
      return s[i]
  }
  </code></pre>
  
  <p>The tool does not need to be perfect. It is OK if some parts of the generated Go code need to be corrected by hand.</p>