&gt; I would guess that their stance is &quot;If you care about that, do it yourself&quot;<p>No, struct layout is currently undefined[0] so you can&#x27;t do that yourself. Any manual packing you defined today may or may not hold across platforms or future go revisions.<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;golang&#x2F;go&#x2F;issues&#x2F;10014" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;golang&#x2F;go&#x2F;issues&#x2F;10014</a>