- 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
9 lines
117 B
Go
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
|
|
}
|