包级类型 1、如果想知道结构体类型 T 的一个实例占用了多少内存,可以使用:size := unsafe.Sizeof(T{}) 转载于:https://www.cnblogs.com/igoodful/p/11259402.html