mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-11-30 08:08:13 +00:00
11 lines
131 B
Go
11 lines
131 B
Go
|
|
package api
|
||
|
|
|
||
|
|
// min returns the smaller of the two passed numbers.
|
||
|
|
func min(a, b int) int {
|
||
|
|
if a < b {
|
||
|
|
return a
|
||
|
|
}
|
||
|
|
|
||
|
|
return b
|
||
|
|
}
|