mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-01-24 02:55:45 +00:00
18 lines
222 B
Go
18 lines
222 B
Go
package util
|
|
|
|
func MinInt(x int, y int) int {
|
|
if x < y {
|
|
return x
|
|
}
|
|
return y
|
|
}
|
|
|
|
func ContainsString(sslice []string, s string) bool {
|
|
for _, ss := range sslice {
|
|
if ss == s {
|
|
return true
|
|
}
|
|
}
|
|
|
|
return false
|
|
}
|