github.com/gramework/runtimer@v0.0.0-20211014201118-d25b6e2ccefd/runtime2.go (about) 1 package runtimer 2 3 // layout of Itab known to compilers 4 // allocated in non-garbage-collected memory 5 // Needs to be in sync with 6 // ../cmd/compile/internal/gc/reflect.go:/^func.dumptypestructs. 7 type Itab struct { 8 Inter *InterfaceType 9 Type *Type 10 Link *Itab 11 Hash uint32 // copy of _type.hash. Used for type switches. 12 Bad bool // type does not implement interface 13 Inhash bool // has this itab been added to hash? 14 Unused [2]byte 15 Fun [1]uintptr // variable sized 16 }