19 lines466 B

Lesson 2: Your first HTTP server

Your first HTTP server comes up in almost every real Go project. We start with the why, then write code together.

Full lesson: https://glibcode.net/courses/go-apis/lessons/2

Files

  • main.go: a hello endpoint with net/http

Run it

go run ./lessons/02-your-first-http-server

Exercises

See exercises.md. Ask in the forum once you've tried.