gitlab.com/evatix-go/core@v1.3.55/enums/stringcompareas/isAnywhereFunc.go (about) 1 package stringcompareas 2 3 import "strings" 4 5 var isAnywhereFunc = func( 6 contentLine, 7 searchComparingLine string, 8 isIgnoreCase bool, 9 ) bool { 10 if isIgnoreCase { 11 return strings.Contains( 12 strings.ToLower(contentLine), 13 strings.ToLower(searchComparingLine), 14 ) 15 } 16 17 return strings.Contains( 18 contentLine, 19 searchComparingLine, 20 ) 21 }