I've got the following Go program:
package main
import (
"fmt"
)
func main() {
r := rune(249)
x := uint16(r)
fmt.Println(x)
}
If I have a rune r
and call uint16(r)
on it, is it going to be big or little endian encoded? Does Go default to one? Or does this depend on my hardware?