jet/internal/utils/min/min.go
go-jet 0d418890ab Qrm refactor
- Allow custom types Scan method to read values returned by the driver rather then the value from intermediate Null types. Scan to intermidiate Null types removed.
- Better error handling
2021-10-15 17:43:10 +02:00

9 lines
117 B
Go

package min
// Int returns minimum of two int values
func Int(a, b int) int {
if a < b {
return a
}
return b
}