Ah, yeah, i guess the ByteOrder type in encoding/binary will let you do the conversion. I'm not sure that is right though, because we want to do the writes in native endian. Is there some way to figure out the native endianness?