The Daily Practice
To master Go, you must build muscle memory. Your challenge: Every morning, rewrite a basic HTTP server from scratch until you can compile it without errors on the first try.
Goal:
- Define a
struct. - Create a handler that decodes JSON into that struct.
- Add a simple middleware for logging.
- Start the server on port 8080.
Don't look at documentation. Build it from memory.