连nil切片和空切片一不一样都不清楚?那面试官只好让你等通知了
问题packagemainimport("fmt""reflect""unsafe")funcmain(){vars1[]ints2:make([]int,0)s4:make([]int,0)fmt.Printf("s1pointer:%+v,s2pointer:%+v,s4pointer:%+v,\n",(reflect.SliceHeader)(unsafe.Pointer(&s1)),(reflect.SliceHeader)(unsafe.Pointer(&s2)),(reflect.SliceHeader)(unsafe.Pointer(&s4)))fmt.Printf("%v\n",((reflect.SliceHeader)(unsafe.Pointer(&s1))).Data((reflect.SliceHeader)(unsafe.Pointer(&s2)))....