
APIs
Tell Null Missing and Zero Apart in Go JSON Decoding
Tell absent, null and zero apart when decoding JSON in Go: why pointers fail, what RawMessage and a generic Optional give you, and omitzero on output.
10 min read
Designing JSON, REST and gRPC interfaces that other people have to live with: versioning, pagination, validation, errors and clients.

Tell absent, null and zero apart when decoding JSON in Go: why pointers fail, what RawMessage and a generic Optional give you, and omitzero on output.

Huma, Fuego and Fizz compared on one endpoint: generated OpenAPI, validation, error shapes, 3.5 to 6.6 µs per request, binary size and dependencies.
We send one email when a new article is published. No spam.