Go
2026-02-10
Notes from building an API server using only net/http, without a framework.
The first time I touched a framework like gin or echo, the routing and middleware were so convenient that I never really understood what was happening underneath. Since I'd rather understand the mechanics before moving on, I decided to build one using nothing but the standard library.
http.ServeMux, parsing path parameters by handcontextI can now see, piece by piece, what a framework was actually doing for me. Even when I use gin now, I have a rough sense of what's happening under the hood.