Using Go generics to handle optional JSON fields
Ever needed both nil and undefined when working with Go? Let's take a look at a use case where you may need that behaviour with a slick solution inspired by a Go standard library type and a sprinkling of generics.
30-12-2024