Используя функцию utf8.RuneCountInString() из пакета unicode/utf8.
utf8.RuneCountInString()
unicode/utf8
go