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