Volker / Jan / Tamás & Peter -- thank you all for your replies.

On Thu, 7 Feb 2019 at 13:16, peterGo <go.peter...@gmail.com> wrote:

> Jamie,
>
> This is a question about Unicode:
>
> The Unicode Consortium: http://unicode.org/
>
> The Unicode Standard: http://www.unicode.org/standard/standard.html
>
> Unicode Frequently Asked Questions: UTF-8, UTF-16, UTF-32 & BOM:
> http://www.unicode.org/faq/utf_bom.html
>
> Briefly, a Unicode code point is 24 bits. The nearest common hardware
> equivalent is 32 bits. Go uses type int32. Go uses an alias of type rune to
> distinguish code points from integers.
>
> A Unicode transformation format (UTF) is an algorithmic mapping from every
> Unicode code point to a unique byte sequence. Go favors UTF-8.
>
> In Go, single quotes enclose a rune (32 bit) literal, double quotes
> enclose a UTF-8 encoded string (one to four byte) literal.
>
> Peter
>
> On Wednesday, February 6, 2019 at 6:14:41 PM UTC-5, Jamie Caldwell wrote:
>>
>> Hello,
>>
>> I'd be grateful if someone could please explain why you would use
>>
>> r := '⌘'
>>
>> Instead of
>>
>> s := "⌘" / s:= `⌘`
>>
>> All use three bytes ...?
>>
>> Thank you,
>> Jamie.
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "golang-nuts" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/golang-nuts/-bvJLkhX_dY/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> golang-nuts+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to