gitlab.com/evatix-go/core@v1.3.55/enums/stringcompareas/isNotEqualFunc.go (about)

     1  package stringcompareas
     2  
     3  import "strings"
     4  
     5  // isNotEqualFunc tided with NotEqual
     6  var isNotEqualFunc = func(
     7  	contentLine,
     8  	notEqualText string,
     9  	isIgnoreCase bool,
    10  ) bool {
    11  	if isIgnoreCase {
    12  		return !strings.EqualFold(
    13  			notEqualText,
    14  			contentLine)
    15  	}
    16  
    17  	return contentLine != notEqualText
    18  }