mirror of
https://github.com/samber/lo.git
synced 2025-09-26 20:11:13 +08:00

* style(lint): gofumpt * style(lint): errcheck * style(lint): revive * style(lint): gocritic * style(lint): forcetypeassert * style(lint): add .golangci.yml * oops
14 lines
299 B
Go
14 lines
299 B
Go
//go:build go1.21
|
|
|
|
package constraints
|
|
|
|
import (
|
|
"cmp"
|
|
)
|
|
|
|
// 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 = cmp.Ordered
|