Web and APIs
HTTP clients, servers, middleware, frameworks, and complete REST API design.
Lesson 1 · Tutorial · Go 1.21+
JSON in Go: Encoding, Decoding, and Validation
Encode and decode JSON safely in Go with struct tags, validation, unknown-field checks, and HTTP examples.
Read tutorial Lesson 2 · Tutorial · Go 1.22+Go net/http: Build an HTTP Server from Scratch
Build a production golang http server with net/http: Go 1.22 routing, PathValue, timeouts, graceful shutdown and static files, every example tested.
Read tutorial Lesson 3 · Tutorial · Go 1.21+Go HTTP Client: Timeouts, JSON, and Reliable Requests
Build reliable outbound HTTP requests in Go with client timeouts, context, JSON, status checks, body limits, and transport reuse.
Read tutorial Lesson 4 · Tutorial · Go 1.22+Go HTTP Middleware: Build a Production Chain
Build composable Go HTTP middleware for logging, recovery, request IDs, authentication, and timeouts.
Read tutorial Lesson 5 · Main topic · Go 1.22+Building a REST API with Go: The Complete Tutorial
Build a production-ready REST API in Go with only the standard library: net/http routing, JSON, middleware, context, graceful shutdown, and tests.
Read tutorial