On 02/27/2017 04:45 PM, Glen Newton wrote:
> 
> 
> |Given a byte b, how do I convert it to a byte of particular
> endianness? It is not clear to me looking at ||"encoding/binary"
> 
> (I am assuming that golang byte endianness varies across 
> ||architectures. If this is wrong please educate me). :-)
> 

Endianness only makes sense when talking about multiple bytes.  One byte
is the same in little and big endian. :P

Still, I assume you're talking about multiple bytes so you should check
out the encoding/binary package:

  https://godoc.org/encoding/binary



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