Decoding JSON sum types in Go without panicking

Table of contents Whether we find them useful or not, sum types exist My first nil pointer panic in Go was due to lack of sum types Decoding JSON sum types in Go, take one How do OpenAPI and Protobuf handle this? Decoding JSON sum types in Go, take two Alternative implementations What Go could have been: V lang? Examples in other languages Whether we find them useful or not, sum types exist Sum…