Slide 19
Slide 19 text
19
empty interfaceのデータ参照
var i interface{}
i = [3]int{1, 2, 3}
i = [4]float64{4.0, 5.0}
type
data
i:
= registers / stack
= heap
ref:
https://github.com/gophercon/2024-talks/blob/main/KeithRandall-InterfaceInternal
s/KeithRandall-InterfaceInternals.pdf
1
2
3
4.0
5.0
GCのsweep対象に