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

     1  package stringutil
     2  
     3  import "unicode/utf8"
     4  
     5  // IsEndsRune searches for case sensitive terms
     6  func IsEndsRune(
     7  	content string,
     8  	r rune,
     9  ) bool {
    10  	lastOne, _ := utf8.DecodeLastRuneInString(content)
    11  
    12  	return lastOne == r
    13  }