How to build an SDK in Go
summary
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
chapters (15)
- 0:00Intro
- 0:30About Diwaker
- 1:22What is Dropbox
- 1:56Dropbox in Go
- 3:01Overview
- 7:30Configuration
- 10:00Logging
- 15:57Metadata
- 18:00Deserialization
- 19:32Security
- 23:14Tests
- 25:31Error Handling
- 27:46Recap
- 29:49Where to get the SDK
- 30:58Questions








