Files
lo/internal/constraints/ordered_go118.go
Trim21 42a90a0c7b remove golang.org/x/exp since it doesn't follow go 1 compatibility promise (#478)
* fix

* mod tidy

* remove test

* redirect cmp.Ordered

* fix

* fix

* fix
2024-06-29 18:03:44 +02:00

12 lines
308 B
Go

//go:build !go1.21
package constraints
// Ordered is a constraint that permits any ordered type: any type
// that supports the operators < <= >= >.
// If future releases of Go add new ordered types,
// this constraint will be modified to include them.
type Ordered interface {
Integer | Float | ~string
}