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

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