mirror of
https://github.com/thomiceli/opengist.git
synced 2024-12-25 13:32:39 +00:00
11 lines
152 B
Go
11 lines
152 B
Go
|
package utils
|
||
|
|
||
|
func SliceContains(slice []string, item string) bool {
|
||
|
for _, s := range slice {
|
||
|
if s == item {
|
||
|
return true
|
||
|
}
|
||
|
}
|
||
|
return false
|
||
|
}
|