200sc / bebop

bebop wire format in Go
Apache License 2.0
69 stars 5 forks source link

Add Union Support #1

Closed 200sc closed 3 years ago

200sc commented 3 years ago

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.