Add stringInSlice function

This commit is contained in:
Alexander Sheiko 2022-04-09 20:41:51 +03:00
parent dcb8906748
commit 95fc73543c

View file

@ -177,3 +177,12 @@ func parseProfile(user legacyUser) Profile {
return profile
}
func stringInSlice(a string, list []string) bool {
for _, b := range list {
if b == a {
return true
}
}
return false
}