cxgo
« Back to VersTracker
Description:
Transpiling C to Go
Type: Formula  |  Latest Version: 0.5.2@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: transpiler c go developer-tools code-conversion
Install: brew install cxgo
About:
cxgo is a command-line tool that automatically transpiles C code into Go. It analyzes C source files and generates equivalent Go code, enabling developers to leverage Go's memory safety and concurrency features. This facilitates modernizing legacy C projects or integrating C libraries into Go applications.
Key Features:
  • Automatic C to Go code conversion
  • Supports standard C constructs and libraries
  • Generates idiomatic Go code
  • Command-line interface for easy integration
Use Cases:
  • Migrating legacy C codebases to Go
  • Integrating C libraries into Go projects without manual bindings
  • Learning Go by comparing equivalent C and Go code structures
Alternatives:
  • c2go – Another transpiler, but cxgo is noted for broader standard library support and active development.
  • cgo – Go's built-in tool for calling C code, but it requires C code to remain as C, rather than converting it to Go.
Version History
Detected Version Rev Change Commit
Oct 10, 2025 3:06am 0 VERSION_BUMP f44e5753
Nov 10, 2024 4:42am 0 VERSION_BUMP 6ca30237