Use the reflect package to get the size of the type.
s := reflect.TypeFor[Coord3d]().Size() fmt.Println(s) // prints 24