gitlab.com/evatix-go/core@v1.3.55/coreutils/stringutil/IsEndsChar.go (about)

     1  package stringutil
     2  
     3  // IsEndsChar searches for case sensitive terms
     4  func IsEndsChar(
     5  	content string,
     6  	char byte,
     7  ) bool {
     8  	length := len(content)
     9  
    10  	if length == 0 {
    11  		return false
    12  	}
    13  
    14  	return content[length-1] == char
    15  }