Используя функцию utf8.RuneCountInString() из пакета unicode/utf8.
utf8.RuneCountInString()
unicode/utf8
go
Register or sign in to get access to full answers for all questions from the question bank.