mirror of
https://github.com/samber/lo.git
synced 2025-09-27 12:22:17 +08:00
12 lines
308 B
Go
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
|
|
}
|