
Understand why porting C to Go is worth it, the C17/18 baseline you're starting from, and why line-by-line translation fails.
Learn the four-tier porting taxonomy — Trivial, Mechanical, Redesign, and Not Possible — and apply the audit rubric to your own code.
Map the C standard library — stdio, strings, math, time, and memory — and watch malloc/realloc/free become make, append, and the garbage collector.
Map errno to Go error values, see where setjmp/longjmp and dlopen have no Go equivalent, and build the full stdlib mapping table.
Map POSIX file operations to the os package and watch the same file ops run in both languages.
Map pipes and process spawning to os/exec and watch a child process run from Go.
Work through the fork caveat, sockets, signals, memory mapping, and event loops, then audit your syscall surface across Linux, FreeBSD, and macOS.
Map structs and pointers to Go and see why map, slice, and string replace hand-rolled collections.
Understand linked lists, unions, bitfields, layout assumptions, object lifetime, and VLAs — and which of them don't port to pure Go.
Redesign pthreads into goroutines and see the Go scheduler take over lifecycle and affinity.
Map stdatomic.h to sync/atomic and watch lock-free operations run in Go.
Map mutexes and condition variables to Go, handle callback-driven and TLS-dependent code, and verify it with the race detector.
Replace Make and Bazel with the Go toolchain and understand CGO_ENABLED and cross-compilation.
Plan a polyglot build with rules_go, replace pkg-config with go.mod, and design the CI toolchain matrix.
See cgo bridge Go and C, learn when to keep code in C, and weigh the costs of the bridge.
Build cgo across the boundary, decide where the C should live, and lay out a realistic hybrid project.
Walk the eight-stage pre-port workflow, from stabilizing the build through verification, and apply the test strategy.
Use strace, ltrace, perf, and pprof to watch code run and compare before/after performance.
Choose the right static analysis, navigation, and post-port tooling for your code's size and age.
This course contains the use of artificial intelligence.
This course uses artificial intelligence to improve the student experience — better demos and consistent audio presentation — and the narration is voiced by a clone of the instructor's own voice.
Porting a C17/18 codebase to Go is rarely a straight translation. Some code moves line-for-line, some needs a mechanical pattern mapping, and some has to be redesigned to be idiomatic Go — while a meaningful slice simply cannot be ported and belongs behind a cgo bridge. This course gives you a repeatable method for telling those cases apart, estimating the cost of each, and planning the migration before you write a single line of Go.
The centerpiece is a four-tier taxonomy — Trivial, Mechanical, Redesign, and Not Possible — with an audit rubric that produces a realistic distribution of your own code. You then apply it across the whole surface area of C: the standard library (stdio, strings, math, memory, errors, plugins), the system-call layer (files, processes, sockets, signals, and the Linux/FreeBSD/macOS deltas), data structures (structs, pointers, unions, layout, and object lifetime), and concurrency (pthreads to goroutines, stdatomic.h to sync/atomic, mutexes and condition variables, and the built-in race detector).
The build system gets the same treatment: replace Make and Bazel rather than translate them, and plan a CI matrix that mixes C and Go while the cgo remainder shrinks. A dedicated section covers cgo itself — crossing the boundary, where the C should live, and the costs of the bridge — plus the eight-stage pre-port workflow (stabilize, inventory, understand, clean up, classify, strategize, execute, verify).
Three worked examples carry a real project from audit through port to verification, one in each tier. The course closes with c2go-assess — a published container image that turns a C project into a starting-point porting roadmap in one command.