# Build APIs with Go Example code and exercises for the glibCode course **[Build APIs with Go](https://glibcode.net/courses/go-apis/)** (Intermediate, about 10 hours). HTTP handlers, JSON, middleware and tests with nothing but the standard library. Then Postgres and deployment. ## Lessons | # | Lesson | Code | | --- | --- | --- | | 1 | Go in one afternoon | [`lessons/01-go-in-one-afternoon`](lessons/01-go-in-one-afternoon/) | | 2 | Your first HTTP server | [`lessons/02-your-first-http-server`](lessons/02-your-first-http-server/) | | 3 | JSON in and out | [`lessons/03-json-in-and-out`](lessons/03-json-in-and-out/) | | 4 | Routing and middleware | [`lessons/04-routing-and-middleware`](lessons/04-routing-and-middleware/) | | 5 | Talking to Postgres | [`lessons/05-talking-to-postgres`](lessons/05-talking-to-postgres/) | | 6 | Testing handlers | [`lessons/06-testing-handlers`](lessons/06-testing-handlers/) | | 7 | Context and timeouts | [`lessons/07-context-and-timeouts`](lessons/07-context-and-timeouts/) | | 8 | Project: a URL shortener | [`lessons/08-project-a-url-shortener`](lessons/08-project-a-url-shortener/) | ## Getting started ```sh git clone https://git.glibcode.net/glibcode/go-apis.git cd go-apis ``` Go 1.22 or newer (the routing lessons use the method patterns of `net/http`). Questions? Ask in the course forum or write to help@glibcode.net. ## License The code is MIT licensed (see `LICENSE`). The lesson texts are © glibCode.