GOARCH="amd64" GOBIN="" GOEXE="" GOHOSTARCH="amd64" GOHOSTOS="darwin" GOOS="darwin"
package main import ( "fmt" "unsafe" ) type T struct { i int x struct{} } func main() { var t T fmt.Println(unsafe.Sizeof(t)) } Since size of struct{} is 0, why the result is 16? -- 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.