Completely untested:
```go
func nativeEndian() bytes.ByteOrder {
    var x uint32 = 0x01020304
    if *(*byte)(unsafe.Pointer(&x)) == 0x01 {
        return bytes.BigEndian
    }
    return bytes.LittleEndian
}
```