~/talk

Evolving Your API

Talkat GopherCon Europe 2025 · 2025-06-16..06-19· [go, api-design]
slides:none on file

Explains concrete techniques to evolve an API while keeping old code: keep the old API and reduce maintenance cost with deprecation comments, a new major import path (V2), or automated rewrites via the go:fix directive that inlines/ioutil→io uses safely. Recommends future‑proofing with internal packages, unexported interface methods, and three option patterns (exported fields, option structs, functional/variadic options). Shows real cases: io/ioutil migration, Begin/BeginTx, ResponseWriter pusher interface, env‑gated old code, build tags and go experiment for long trials, and concrete counts like 4 net/http internal packages vs 58 in crypto.

AI-written summary · about

  1. 0:00API evolution challenges
  2. 1:46Breaking changes harm trust
  3. 4:15Future-proofing APIs
  4. 9:57Case study: wrapping external specs
  5. 12:06Breaking changes at v0+
  6. 15:35Safe ways to add functionality without breaking
  7. 18:47Deprecation strategies
  8. 19:09Go 1.26 inlining tool
  9. 21:17Safe user experiments
  10. 25:50API evolution summary
~/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.