Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
cthom06
· 13y ago · 0 comments
I commented on the article, but here as well. When dealing with unicode in Go you should be converting strings to []rune
Comments
[–]
tsewlliw
13y ago
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_
[–]
cthom06
OP
13y ago
Yes it is a single codepoint. Normalization is a whole other issue, and a much less trivial one.