This commit is contained in:
admju
2024-09-09 07:38:43 +00:00
parent da9aab90eb
commit 53a614bd7e
9 changed files with 123 additions and 45 deletions

10
src/utils/slice.go Normal file
View File

@@ -0,0 +1,10 @@
package utils
func StringInSlice(a string, list []string) bool {
for _, b := range list {
if b == a {
return true
}
}
return false
}