https://pkg.go.dev/reflect#Type.Size or https://pkg.go.dev/unsafe#Sizeof

On Wed, 13 Jul 2022 at 08:00, xie cui <cuiwei...@gmail.com> wrote:

>
> https://github.com/orijtech/structslop/blob/13637e228c1a50d8444da1b71a83aff3b6536851/structslop.go#L246-L267
> why sort by <align of field,  size of field> can minimize the sizeof
> struct?
> is there some formal prove?
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/golang-nuts/11d1b26a-b090-4462-a6c0-c04054ca1789n%40googlegroups.com
> <https://groups.google.com/d/msgid/golang-nuts/11d1b26a-b090-4462-a6c0-c04054ca1789n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAHEMsqain0U%3D2DZ%2B2bXnpZexp%2BO%3DUa3Y%2BwjW13Qk7eX5O_PUsg%40mail.gmail.com.

Reply via email to