~/talk

How to build an SDK in Go

Talkat Golang UK 2017 · 2017-08-16..08-18· [api-design, developer-experience]
slides:none on file

Dropbox’s Go SDK is auto-generated using a Stone code generator and powers a working command-line tool called dbx CLI, demonstrating codegen-first scalability. Generated tests cover API inputs/outputs, while unions and polymorphism use json.RawMessage with custom UnmarshalJSON and the omitempty trick for serialization. Configuration lives in a passed struct (no on-disk persistence), SDK accepts an auth token (no auth flows), exposes configurable verbose logging, and a real OAuth failure is fixed by registering a broken-header provider.

AI-written summary · about

  1. 0:00Intro
  2. 0:30About Diwaker
  3. 1:22What is Dropbox
  4. 1:56Dropbox in Go
  5. 3:01Overview
  6. 7:30Configuration
  7. 10:00Logging
  8. 15:57Metadata
  9. 18:00Deserialization
  10. 19:32Security
  11. 23:14Tests
  12. 25:31Error Handling
  13. 27:46Recap
  14. 29:49Where to get the SDK
  15. 30:58Questions
~/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.