runtime: iface

This commit is contained in:
xushiwei
2024-05-26 08:59:10 +08:00
parent afe20ffe92
commit 914a0c60b0
8 changed files with 295 additions and 139 deletions

View File

@@ -88,7 +88,7 @@ func (b Builder) abiStructOf(t *types.Struct) Expr {
params := strucAbi.raw.Type.(*types.Signature).Params()
tSlice := prog.rawType(params.At(params.Len() - 1).Type().(*types.Slice))
fldSlice := b.SliceLit(tSlice, flds...)
return b.Call(strucAbi, pkgPath, fldSlice)
return b.Call(pkgPath, strucAbi, fldSlice)
}
// func StructField(name string, typ *abi.Type, off uintptr, tag string, exported, embedded bool) abi.StructField