Realize OneOf type.
OneOf
OneOf allows to store different types in one variable. It supports also JSON marshalling and unmarshalling.
For example see [examples_test.go].
GoDoc