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. See the matrix for the honest counter-cases.

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.