~/talk

How to Future-proof your Go API

Talkat GothamGo 2018 · on Friday, 2018-04-27· [go, web-platform]
slides:none on file

Claims a migration-based approach keeps the public contract stable while minimizing ongoing coding. Uses Go stdlib HTTP, httptest and the HTTP dump, plus Go interfaces and testing hooks to assert whole responses rather than individual fields. Ships two tools: abide snapshotting to record and detect interface regressions and pinned version migrations to apply incremental transforms to resources. Both integrate with go test, catch unexpected changes, and serve as versioned documentation so regressions are observable and actionable.

AI-written summary · about

  1. 0:00Start
  2. 0:13windmill
  3. 3:19Future-Proof Application Programming Interface
  4. 4:03Future-Proof Application Programming - Less maintenance
  5. 4:24Why Go? Standard library (net/http, testing) Type + Interfaces Go Community + API Frameworks
  6. 14:48pinned type Version type Change type Versionable interface
  7. 18:18Versioning - Summary Use 'Interface to support any object = Integrate into testing for observability
~/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.