https://blog.golang.org/strings
utf8.RuneCountInString is about as close as you will get. Do you have an example string that is not meeting expectations? On Saturday, July 23, 2016 at 7:52:29 AM UTC-7, T L wrote: > > len(str) will get the count of bytes. > > utf8.RuneCountInString(str) will get the count of runes. > > but how to get the count of characters? > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.