Use proper Endian conversion tools from encoding/binary