reflect: add reflect.TypeOf

This is the beginning of true reflection support in TinyGo.
This commit is contained in:
Ayke van Laethem
2018-12-12 11:52:47 +01:00
parent 70f1064f36
commit f0904779a5
4 changed files with 23 additions and 8 deletions
+3 -1
View File
@@ -5,9 +5,11 @@ package runtime
// Interfaces are represented as a pair of {typecode, value}, where value can be
// anything (including non-pointers).
import "unsafe"
type _interface struct {
typecode uintptr
value *uint8
value unsafe.Pointer
}
// Return true iff both interfaces are equal.