badger/internal/tools/arrays.go

12 lines
183 B
Go
Raw Normal View History

2023-03-14 09:53:33 +01:00
package tools
// exported function(s)
func ContainsString(array []string, value string) bool {
for _, tmp := range array {
if tmp == value {
return true
}
}
return false
}