Unions

suggest change

Go doesn’t have a union type like C.

To combine a value and its type into a single entity, use an empty interface.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


Basic types:
* Enums
* Arrays
* Slices
* Maps
* Unions

Table Of Contents