Select Git revision
-
Md. Alim Ul Karim authored
# v0.6.8 - Integration Test Helper (Validators, SliceValidators, Refactoring, ReflectSlice functions) - [x] Validators - [x] SliceValidators - [x] Refactoring - [x] ReflectSlice functions See merge request !55
Md. Alim Ul Karim authored# v0.6.8 - Integration Test Helper (Validators, SliceValidators, Refactoring, ReflectSlice functions) - [x] Validators - [x] SliceValidators - [x] Refactoring - [x] ReflectSlice functions See merge request !55
IsEndsRune.go 219 B
package stringutil
import "unicode/utf8"
// IsEndsRune searches for case sensitive terms
func IsEndsRune(
content string,
r rune,
) bool {
lastOne, _ := utf8.DecodeLastRuneInString(content)
return lastOne == r
}