loki-client-go/pkg/helpers/math.go
2022-09-07 17:17:11 +08:00

10 lines
132 B
Go

package helpers
// MinUint32 return the min of a and b.
func MinUint32(a, b uint32) uint32 {
if a < b {
return a
}
return b
}