package main

import (
	"fmt"
	"unsafe"
)

func main() {
	// 查看某个变量占用字节大小
	var a int64 = 10
	fmt.Printf("x的字节数是%d", unsafe.Sizeof(a)) // 8

}