diff options
Diffstat (limited to 'src/pkg/runtime/iface.go')
| -rw-r--r-- | src/pkg/runtime/iface.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/pkg/runtime/iface.go b/src/pkg/runtime/iface.go index a317628403..3180ea4524 100644 --- a/src/pkg/runtime/iface.go +++ b/src/pkg/runtime/iface.go @@ -425,3 +425,16 @@ func efacethash(e interface{}) uint32 { } return t.hash } + +func iterate_itabs(fn func(*itab)) { + for _, h := range hash { + for ; h != nil; h = h.link { + fn(h) + } + } +} + +func ifaceE2I2(inter *interfacetype, e interface{}, r *fInterface) (ok bool) { + *r, ok = assertE2I2(inter, e) + return +} |
