strings.RuneCountInString is probably what you want.
> And a more general question which I
> also have not found answer to: why a language, intended to be actively
> used for web programming, has such uneasy way to deal with strings
> containing multibyte symbols (compared to Java, for example)?
the concept of a "character" is a slippery one in the presence of
combining characters. one person's answer might not be another's.
i find Go works pretty well with multibyte symbols. it's relatively
rare to need random access to characters in my experience.
strings.RuneCountInString is probably what you want.
Thank you, but the package is utf8: http://golang.org/pkg/utf8/#RuneCountInString.