Re:Padding is hard
by masklinn on Friday October 09, 2015 @12:37PM
(#10361283)
> I would guess that their stance is "If you care about that, do it yourself"
No, struct layout is currently undefined[0] so you can't do that yourself. Any manual packing you defined today may or may not hold across platforms or future go revisions.
No, struct layout is currently undefined[0] so you can't do that yourself. Any manual packing you defined today may or may not hold across platforms or future go revisions.
[0] https://github.com/golang/go/issues/10014