well, seems to me if you need to access a string by index, you are assuming 
1 byte per char. say ASCII, so for me you should be using []byte to store 
it, then 'cast' to see it as a string.

https://play.golang.org/p/2NMye8gnzg

surely this doesn't do any copying?

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