docxTemplater/tools/array.go

12 lines
153 B
Go
Raw Permalink Normal View History

package tools
func ArrayContains(arr []string, str string) bool {
for _, elem := range arr {
2023-08-31 19:58:55 +00:00
if elem == str {
return true
}
}
return false
}