Skip to content

Glossary: Go Beyond the Basics

union

A constraint that allows any of several listed types, written with `|`, such as `int | float64`.

Where the book teaches it

Related terms

constraint