ghorg/utils/slice.go
6543 ab9fabfba2
Determine Supported Clients based on registered once (#106)
* Determine Supported Clients based on registered once

* rm dependencys from scm
2020-10-24 20:34:35 +02:00

12 lines
200 B
Go

package utils
// IsStringInSlice check if a string is in a given slice
func IsStringInSlice(s string, sl []string) bool {
for i := range sl {
if sl[i] == s {
return true
}
}
return false
}