Hacker News new | ask | show | jobs
by cthom06 4769 days ago
I commented on the article, but here as well. When dealing with unicode in Go you should be converting strings to []rune
1 comments

Is rune "right" even? I thought that rune was a single codepoint. How does that behave in the presence of combining characters or in non normalized unicode strings?

https://twitter.com/glitchr_

Yes it is a single codepoint. Normalization is a whole other issue, and a much less trivial one.