Code and exercises for the course Build APIs with Go https://glibcode.net/courses/go-apis/
Go 95.0%YAML 5.0%

README.md

Build APIs with Go

Example code and exercises for the glibCode course Build APIs with Go (Intermediate, about 10 hours).

HTTP handlers, JSON, middleware and tests with nothing but the standard library. Then Postgres and deployment.

Lessons

#LessonCode
1Go in one afternoon0
2Your first HTTP server0
3JSON in and out0
4Routing and middleware0
5Talking to Postgres0
6Testing handlers0
7Context and timeouts0
8Project: a URL shortener0

Getting started

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.