xlab/c-for-go
Automatic C-Go Bindings Generator for Go Programming Language observed · 2026-08-28
Health v2 · maintenance only
54/100
- Activity 70
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4054
- days_rel: n/a
- days_push: 181
- n_releases_24m: 0
Adoption not part of the score
1682 stars · 121 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
c-for-go is an automatic C-Go bindings generator for the Go programming language. It parses C headers using a YAML manifest to generate low-level cgo-based Go packages that wrap existing C/C++ libraries.
Use cases
- generate go bindings for a c library
- wrap c headers in go automatically
- use a c library from go without writing cgo by hand
- create go package from c api headers
- bind vulkan or other c apis to go
- convert c header files to go code
When to choose
- you need to call an existing C library from Go and want to avoid hand-writing thousands of lines of cgo
- you want reproducible, manifest-driven binding generation for large C APIs
- you are comfortable managing memory and writing a high-level Go wrapper on top of low-level bindings
When to avoid
- you need a pure-Go solution with no cgo dependency
- the C library is tiny and a few hand-written cgo bindings would be simpler
- you need bindings for languages other than Go
Facets
cli-tool · maturity maintenance
parser developer-tools developer-tools programming-languages cross-platform go cli cross-platform cgo bindings-generator c-interop yaml-manifest code-generation
2 sources
- readme: https://github.com/xlab/c-for-go · fetched 2026-08-28 · f307772fa0a0
- homepage: https://c.for-go.com · fetched 2026-08-29 · 2151a305c55b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| xlab/c-for-go | main | 54 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem