Skip to content

Commit e2103c2

Browse files
committed
Min
1 parent 9deea1c commit e2103c2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

mathutils/mathutils.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package mathutils
2+
3+
// Min Returns the smaller of two int values.
4+
func Min(a, b int) int {
5+
6+
if a <= b {
7+
return a
8+
}
9+
return b
10+
}

0 commit comments

Comments
 (0)