> From looking at the docs of binary.Read/binary.Write I can not see that it will read or write only exported members. Interestingly, binary.Write happily writes all my fields, even though all are in lower case only. But on binary.Read, I get the above panic. Is this intentional? If yes, I will have to rename all my struct members I am attempting to Read/Write via binary.
Reflection allows read access to unexported fields so, for instance, Printf can print the private elements of your data for debugging. But it does not allow write access, which (perhaps paradoxically) is what binary.Read needs.
-rob