19 lines
195 B
Go
19 lines
195 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"unsafe"
|
|
)
|
|
|
|
type data1 struct {
|
|
aaa bool
|
|
bbb [1023]byte
|
|
ccc bool
|
|
}
|
|
|
|
func main() {
|
|
d := data1{}
|
|
fmt.Println(unsafe.Sizeof(d))
|
|
fmt.Println(unsafe.Alignof(d))
|
|
}
|