Documentation ¶
Overview ¶
Package constraints defines a set of useful constraints to be used with type parameters. This package was called "constriants" and was removed from the Go standard library before the 1.18 release, but is reproduced here inside the fn library because we need the numeric types. See https://github.com/golang/go/issues/50792
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Arithmetic ¶
Arithmetic is the type union of all numeric types.
type Complex ¶
type Complex interface { ~complex64 | ~complex128 }
Complex is a constraint that permits any complex numeric type.
type Ordered ¶
Ordered is a constraint that permits any ordered type: any type that supports the operators < <= >= >.
Click to show internal directories.
Click to hide internal directories.