mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-11-14 12:15:06 +08:00
11 lines
136 B
Go
11 lines
136 B
Go
|
package diff2
|
||
|
|
||
|
import "golang.org/x/exp/constraints"
|
||
|
|
||
|
func min[T constraints.Ordered](a, b T) T {
|
||
|
if a < b {
|
||
|
return a
|
||
|
}
|
||
|
return b
|
||
|
}
|