mirror of
https://github.com/thomiceli/opengist.git
synced 2025-02-19 01:55:43 -05: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
|
||
|
}
|