Skip to content

Glossary: Go Beyond the Basics

constraint

Also written: constraints

The rule listing which types a type parameter may stand for, such as `int | float64` or `cmp.Ordered`.

Where the book teaches it

Related terms

type parameterunionanycomparable