Skip to content

Commit 93ca6ab

Browse files
committed
add util package
1 parent 3e357da commit 93ca6ab

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

util/util.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package util
2+
3+
func abs(x int) int {
4+
if x > 0 {
5+
return -x
6+
}
7+
return x
8+
}

0 commit comments

Comments
 (0)