init - add project files
This commit is contained in:
12
tools/jet-2.12.0/internal/utils/strslice/strslice.go
Normal file
12
tools/jet-2.12.0/internal/utils/strslice/strslice.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package strslice
|
||||
|
||||
// Contains checks if slice of strings contains a string
|
||||
func Contains(strings []string, contains string) bool {
|
||||
for _, str := range strings {
|
||||
if str == contains {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
Reference in New Issue
Block a user