Data must be a fixed-size value or a slice of fixed-size values, or a pointer to such data.
But this still doesn't give any idea for struct's case(maybe it does, but me, couldn't catch that). I think binary.Write: non fixed-size field of type *main.Person would be much better. How do others think?
The text was updated successfully, but these errors were encountered: