FullRuneInString in Go

Posted by GoDoc
Public (Editable by Users)

FullRuneInString is like FullRune but its input is a string.

Go
Edit
package main

import (
	"fmt"
	"unicode/utf8"
)

func main() {
	str := "δΈ–"
	fmt.Println(utf8.FullRuneInString(str))
	fmt.Println(utf8.FullRuneInString(str[:2]))
}