On Sat, Apr 20, 2019 at 11:53 AM <immueggp...@gmail.com> wrote: > > binary.Read can't set unexported fields, right? > But my structs are defined in C, and I can't make all C source code using > capital fields.. > What could I do?
Read the fields separately. That is often a better idea in any case, as the result is more portable and avoids problems with structs that require padding between fields. Ian -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.