summaryrefslogtreecommitdiff
path: root/vendor/github.com/samber/lo/internal/constraints/ordered_go118.go
blob: a124366fd3912288e781c7410cfe01d950ff724b (plain)
1
2
3
4
5
6
7
8
9
10
11
//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
}