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

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