Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Attempts to convert C to Go. Works on several simple examples, but not complex applications.
C Python
branch: master

Merge pull request #1 from techtonik/master

Change cmdline help and add -v argument for debuggin version info
latest commit 18f0b86b57
@xyproto authored

C2Go 0.1

C2Go is based on the example from pycparser by Eli Bendersky, and uses pycparser extensively.

The C examples are from:


  • pycparser
  • ply


If you wish to help out, here is one way:

  1. Enter the "doesnotworkyet" directory
  2. Select a c file to work on
  3. Type ../ name, where name is the filename before ".c"
  4. Observe the error messages when the generated Go file doesn't compile
  5. Edit the Go file to make it compile again, to know what to work towards
  6. Edit to make it generate a Go file that does compile for the given test case
  7. Create a pull request

Pull requests are appreciated.


  • April 2013 - Updated to use Go 1
  • October 2014 - Only minor changes
Something went wrong with that request. Please try again.