~/talk

Implementing RESTful APIs

Talkat GopherCon Europe 2019 · 2019-05-30..06-01· [api-design, go]
slides:none on file

Step-by-step practical recipe for real REST APIs in Go: uses net/http for concurrency, prefers gorilla/mux for dynamic routing, implements JWT middleware via context to propagate claims and a per-request transaction ID, and enforces dependency injection with constructors so DB, logger and services are interfaces. Emphasizes strict error handling (no ignored errors), structured logging (logrus-style interface), TLS behind nginx or direct ListenAndServeTLS, and a cmd/internal/pkg layout that the uploader says is used in Mastercard Labs and healthcare projects.

AI-written summary · about

  1. 0:00Introduction and context
  2. 1:11Golang web service basics
  3. 12:39Internal application logic
  4. 19:26Middleware and authentication
  5. 23:38Structure and dependency
  6. 28:34Main application setup
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.