You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
package main
import (
"fmt"
"reflect"
"unsafe"
)
type T [8]int
func main() {
var t1 T
var t2 [8]int
fmt.Println(unsafe.Sizeof(t1))
fmt.Println(unsafe.Sizeof(t2))
fmt.Println(reflect.TypeOf(t1).Size())
fmt.Println(reflect.TypeOf(t2).Size())
}