Decoding JSON sum types in Go without panicking
Learn how to emulate and decode JSON sum types in Go. Explore two approaches: the initial 'bag of all fields' and a more type-safe method inspired by OpenAPI and Protobuf. Discover tips to avoid runtime panics and how to ensure type safety using linters for exhaustive checking. Alternative implementations and insights into handling JSON sum types with Go are also discussed.