# elliotchance/c2go

⚖️ A tool for transpiling C to Go.

Repository: https://github.com/elliotchance/c2go
Canonical: https://ross.abutalabs.com/products/c2go
Language: Go
License: MIT
License Family: permissive
Topics: c, go, transpiler
Last push: 2026-08-21T22:49:35+00:00

## Health v2 (maintenance only)
Score: 67/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 8, longevity 100
- inputs: {"age_days": 3456, "days_push": 12, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2184, forks 165 (observed 2026-08-28T04:06:23.573115+00:00)

## What it is
c2go is a command-line transpiler that converts C source code into Go source code using the clang AST. It aims to be a repeatable, predictable conversion tool, with the long-term goal of transpiling SQLite3 unmodified.

## Use cases
- convert a C program to Go
- transpile legacy C codebase to Go
- port C library to Go automatically
- migrate C source files to idiomatic Go projects
- translate C code without rewriting it by hand

## When to choose
- you want to migrate existing C code to Go with minimal manual rewriting
- you need a repeatable, scriptable C-to-Go conversion pipeline
- your C code is relatively simple and standard-library based

## When to avoid
- you need fully idiomatic Go output without cleanup
- your C code relies heavily on complex macros, platform-specific features, or advanced pointer tricks
- you need guaranteed correctness for safety-critical code without manual review

## Facets
- artifact type: cli-tool
- maturity: active
- function: compiler, parser, developer-tools
- domain: programming-languages, compilers, developer-tools
- platform: go, cli
- tags: transpiler, c-to-go, source-to-source, clang-ast, code-conversion, command-line, linux, macos

## Member repositories
- elliotchance/c2go (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:23.573115+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:48:13.629598+00:00, confidence not recorded.
  - readme: https://github.com/elliotchance/c2go (fetched 2026-08-28T04:06:23.573115+00:00, sha 5e827035663c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
