MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / Min

Function Min

base/util.go:1486–1491  ·  view source on GitHub ↗
(a, b T)

Source from the content-addressed store, hash-verified

1484}
1485
1486func Min[T constraints.Ordered](a, b T) T {
1487 if a < b {
1488 return a
1489 }
1490 return b
1491}
1492
1493func Max[T constraints.Ordered](a, b T) T {
1494 if a > b {

Calls

no outgoing calls

Tested by

no test coverage detected