On 21 June 2012 15:00, Sonia Keys <
soni...@gmail.com> wrote:
> Some recent comments on Stack Overflow are bugging me. I'm asking for help
> here because the comments have the effect of spreading FUD about Go. The
> posted question asks how to create a case insensitive map. The troublesome
> comments make false statements about Go's handling of Unicode (when the OP
> wasn't even concerned with Unicode.)
The comments seem reasonable to me. It's correct that you can't
do a case insensitive map that works correctly with unicode characters
by using strings.ToLower. That's the reason that strings.EqualFold
exists.
I wonder if using strings.Map(unicode.SimpleFold, s) would be wrong
too. Unicode is too subtle for me...