I’m just starting with Go, and while checking the Unicode module, I did this:
rune_2 := ‘b’
result := unicode.ToTitle(rune_2)
As I understand according to the official documentation here.
I should be getting “B” as returned value, but I am getting 66 (int32 value) instead.
I really don’t understand why this is happening since I’m following the same logic used in the official example, I even opened the source code and this method should return a rune.