FullRuneInString is like FullRune but its input is a string.
package main import ( "fmt" "unicode/utf8" ) func main() { str := "δΈ–" fmt.Println(utf8.FullRuneInString(str)) fmt.Println(utf8.FullRuneInString(str[:2])) }