Sizeof struct in GO
Posted
by Homer J. Simpson
on Stack Overflow
See other posts from Stack Overflow
or by Homer J. Simpson
Published on 2010-01-21T23:18:03Z
Indexed on
2010/05/01
6:27 UTC
Read the original article
Hit count: 376
I'm having a look at Go, which looks quite promising. I am trying to figure out how to get the size of a go struct, for example something like
type Coord3d struct { X, Y, Z int64 }
Of course I know that it's 24 bytes, but I'd like to know it programmatically..
Do you have any ideas how to do this ?
© Stack Overflow or respective owner