Too Long; Didn't Read
How To Create Golang REST API: Project Layout Configuration [Part 3] The project is about 3 simple parts, no nasty additives. The idea of a middleware in context of route handlers is that we construct our handlers from multiple, small functions - middlewares. Middlewares allow easy code re-usability and handlers become much easier to reason about. I'll continue working on users resource from previous posts by adding additional logic to it. Next I plan to accept user id as URL and make sure it's a valid numeric string. If client sends malformed id, I'm skipping it for demonstration purposes.