Unions
suggest changeGo doesn’t have a union type like C.
To combine a value and its type into a single entity, use an empty interface.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents
Go doesn’t have a union type like C.
To combine a value and its type into a single entity, use an empty interface.