I'm creating a data structure for storing single unicode characters which I can then compare.
Two Questions:
-
What data types do I use?
type ds struct { char Char // What should Char be so that I can safely compare two ds? }
I need a way to compare the first character of any two unicode strings. Is there a simple way to do that? Basically, how do I retrieve the first unicode character of a string?