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