Remove string contains func (it's in the stdlib)

This commit is contained in:
Jonny Stoten
2024-05-08 10:28:19 +01:00
parent e3d02ab2e1
commit c69a9586c5
2 changed files with 2 additions and 12 deletions

View File

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