摘要:
问题 type Part1 struct { a bool b int32 c int8 d int64 e byte } 在开始之前,希望你计算一下 Part1 共占用的大小是多少呢? func main() { fmt.Printf("bool size: %d\n", unsafe.Sizeo 阅读全文
摘要:
package main import "fmt" type good struct { id int64 sum int64 } func main() { good1 := good{1, 3} good2 := good{1, 3} good := []good{} good = append 阅读全文