package main import ( "fmt" "unicode/utf8" ) func main() { word := "árvíztűrő" fmt.Println(utf8.RuneCountInString(word)) }