Unions have no smart analogue in Go, so I don't think they're a good choice if just using bebop in Go, but this should properly translate them. It lacks checks to confirm that only one subtype of the union is set currently, but that may be added in the future.
This adds limited support for unions.
Unions have no smart analogue in Go, so I don't think they're a good choice if just using bebop in Go, but this should properly translate them. It lacks checks to confirm that only one subtype of the union is set currently, but that may be added in the future.