@@ -10,8 +10,17 @@ type dummy struct{}
|
||||
// DummyType represents a stand-in for a recursive type.
|
||||
var DummyType = reflect.TypeOf(dummy{})
|
||||
|
||||
// the following type sizes must match their original definition in Go src/reflect/type.go.
|
||||
|
||||
type rtype struct {
|
||||
_ [48]byte
|
||||
_ uintptr
|
||||
_ uintptr
|
||||
_ uint32
|
||||
_ uint32
|
||||
_ uintptr
|
||||
_ uintptr
|
||||
_ uint32
|
||||
_ uint32
|
||||
}
|
||||
|
||||
type emptyInterface struct {
|
||||
@@ -20,14 +29,14 @@ type emptyInterface struct {
|
||||
}
|
||||
|
||||
type structField struct {
|
||||
_ int64
|
||||
_ uintptr
|
||||
typ *rtype
|
||||
_ uintptr
|
||||
}
|
||||
|
||||
type structType struct {
|
||||
rtype
|
||||
_ int64
|
||||
_ uintptr
|
||||
fields []structField
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user