This commit is contained in:
Пётр Крутов
2022-08-11 08:09:54 +00:00
parent c95208ee97
commit 68d24d41c4
308 changed files with 15470 additions and 85 deletions

View File

@@ -0,0 +1,10 @@
package validators
func StringInSlice(str string, target []string) bool {
for _, v := range target {
if v == str {
return true
}
}
return false
}