Documentation ¶
Overview ¶
Package constraints defines a set of useful constraints to be used with type parameters.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Number ¶
type Number interface { constraints.Integer | constraints.Float }
Number is a constraint that permits any number type: any type that supports the operators < <= >= > - + * /. If future releases of Go add new number types, this constraint will be modified to include them.
Click to show internal directories.
Click to hide internal directories.