XOR file contents written in Golang