go-for-c โ€” interactive

A fast-paced, example-based introduction to Go for people fluent in C. The code examples are live: edit any snippet and press Run to execute it in your browser.

Code runs on the public codapi.org sandbox (Go 1.27). Each example also shows its expected output, so the page is useful even offline. The exercises themselves live in the repository โ€” clone it and make the tests pass.

Modules

How to use these

Read top to bottom. When you hit a snippet, try changing a value and running it to check your understanding. The matching exercise directory in the repo has a stub to fill in and a test that defines "done".