[go-nuts] [ANN] A Minecraft like game written in go
Hi, I wrote this project when I was learning OpenGL. Although I am not an expert in the game field, writing games with go is cool. Github repository: https://github.com/icexin/gocraft Thanks! -- 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.
[go-nuts] Size of struct{}?
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.