which type's size is zero in slice of golang?
When I read the source code of golang slice, I found a code et.size == 0. so I want to know which type's size is 0?
func growslice(et *_type, old slice, cap int) slice {
...
if et.size == 0 {
if cap < old.cap {
panic(errorString("growslice: cap out of range"))
}
return slice{unsafe.Pointer(&zerobase), old.len, cap}
}
...
}