Search across all documentation pages
10 pages in this section.
Understand cgo's costs and benefits for Go-C interop. Learn when to use cgo, its limitations, and key concepts like pointer rules and build tags.
Learn CGO basics with 10 examples. Discover how to call C functions, manage memory, and integrate C code within your Go applications.
Learn when to use pure-Go alternatives like x/sys or standard library packages instead of CGO for system calls and OS interactions.
Learn how Go targets WebAssembly for browser and server-side applications without cgo. Discover GOOS/GOARCH settings and when to use TinyGo.
Isolate CGO behind small packages, test on all targets, and apply best practices for clear ownership, reproducible builds, and escape hatches.
A single-page roundup of every highlight bullet from the 9 pages in the CGO & Interop section, grouped by source page so you can scan all 53 takeaways without opening each article individually.