Skip to content

Backends — Go vs Rust

Sister project shop-two-backends ships the same shop endpoints twice — once in Go (chi + sqlc) and once in Rust (axum + sqlx). Each comparison below shows the actual source files side-by-side, with notes on what's worth taking away.

Goal: make a Go developer who reads both columns say "okay, I see why I'd switch for this kind of code" — without pretending Go does nothing well. The Where Go shines page is the honest counter-pitch: five places where Rust is the wrong call.

Heads up: the sibling shop-two-backends checkout was not found at build time, so the comparison code panels will be empty. Clone it as a sibling directory and rebuild.