1
0
mirror of https://github.com/thomiceli/opengist synced 2025-02-21 17:19:34 +01:00
opengist/internal/utils/slice.go
2023-06-09 15:25:41 +02:00

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
}