On Mon, Oct 31, 2016 at 06:06:23PM +0000, 'Thomas Bushnell, BSG' via 
golang-nuts wrote:
> Strings are specified to be UTF8, so if you cast a string to []byte you
> will see its UTF8 representation.

They are not. A Go string may contain arbitrary bytes. Features like
for..range or conversions to rune slices won't be very useful then
(though still well-defined) but that's about it.

Go source text and thus string literals are UTF-8. You might be thinking
of those?

-ls

-- 
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