Example Programs
CodeGraph ships with curated example projects you can open, analyze, and edit without creating an account. Every example produces a live program flow chart, call graph, and module graph.
Open the editor About the Go visualizer
Go by Example — 25 graph-rich programs
A curated set of annotated programs from Go by Example is built into the project switcher. Each example has concurrency or non-linear control flow worth exploring as a diagram:
- Concurrency — goroutines, channels, select, worker pools, wait groups, rate limiting, atomic counters, mutexes.
- Control flow — recursion, defer, panic and recover.
- Practical programs — a concurrent TCP server, request context cancellation and signal handling.
Each program opens with its entry file selected, so the flowchart shows exactly the lesson you picked — for instance, the worker pools example renders goroutine launches and channel sends as distinct graph nodes.
Starter workspace: a token bucket in Go
The default editable workspace implements a token bucket rate limiter — a small, realistic program with branches, early returns, and method calls that map nicely onto a flowchart. It is the fastest way to see the analyzer at work: open it, change a condition, and watch the graph rebuild.
Share your own examples
Any workspace can be published as an immutable snapshot with a public
link (codegraph.studio/s/…). The link opens the exact code
and the file you were viewing, with the diagram ready — useful for
lessons, code review, and bug reports. See
the documentation for details.